replace stdlib.h with cstdlib, remove not needed forward declarations in type traits, fix README typo

This commit is contained in:
ado 2021-01-06 09:08:59 +01:00
parent 29a21c3bca
commit 7ea33c80e2
3 changed files with 2 additions and 16 deletions

View File

@ -58,7 +58,7 @@ Bill (Heath) Gates 65 3.3
* Conversions can be chained if invalid
* Fast
# Instalation
# Installation
```
$ git clone https://github.com/red0124/ssp

View File

@ -5,7 +5,7 @@
#include "restrictions.hpp"
#include <cstring>
#include <optional>
#include <stdlib.h>
#include <cstdlib>
#include <string>
#include <vector>

View File

@ -57,14 +57,6 @@ using head_t = typename left_of_impl<0, Ts...>::type;
// tup tail/last
////////////////
template <size_t N, typename T, typename... Ts>
struct right_of_impl;
template <size_t N, typename T, typename... Ts>
struct right_of_impl {
using type = typename right_of_impl<N - 1, Ts...>::type;
};
template <typename T, typename... Ts>
struct right_of_impl<0, T, Ts...> {
using type = std::tuple<T, Ts...>;
@ -230,9 +222,6 @@ using filter_not_t = typename filter_not<Trait, Ts...>::type;
// count
////////////////
template <template <typename...> class Trait, typename T, typename... Ts>
struct count;
template <template <typename...> class Trait, typename T, typename... Ts>
struct count {
static constexpr size_t size =
@ -248,9 +237,6 @@ struct count<Trait, T> {
// count not
////////////////
template <template <typename...> class Trait, typename T, typename... Ts>
struct count;
template <template <typename...> class Trait, typename T, typename... Ts>
struct count_not {
static constexpr size_t size =