mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
replace stdlib.h with cstdlib, remove not needed forward declarations in type traits, fix README typo
This commit is contained in:
parent
29a21c3bca
commit
7ea33c80e2
@ -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
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include "restrictions.hpp"
|
||||
#include <cstring>
|
||||
#include <optional>
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user