mirror of
https://github.com/red0124/ssp.git
synced 2025-02-02 16:51:12 +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
|
* Conversions can be chained if invalid
|
||||||
* Fast
|
* Fast
|
||||||
|
|
||||||
# Instalation
|
# Installation
|
||||||
|
|
||||||
```
|
```
|
||||||
$ git clone https://github.com/red0124/ssp
|
$ git clone https://github.com/red0124/ssp
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "restrictions.hpp"
|
#include "restrictions.hpp"
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -57,14 +57,6 @@ using head_t = typename left_of_impl<0, Ts...>::type;
|
|||||||
// tup tail/last
|
// 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>
|
template <typename T, typename... Ts>
|
||||||
struct right_of_impl<0, T, Ts...> {
|
struct right_of_impl<0, T, Ts...> {
|
||||||
using type = std::tuple<T, Ts...>;
|
using type = std::tuple<T, Ts...>;
|
||||||
@ -230,9 +222,6 @@ using filter_not_t = typename filter_not<Trait, Ts...>::type;
|
|||||||
// count
|
// count
|
||||||
////////////////
|
////////////////
|
||||||
|
|
||||||
template <template <typename...> class Trait, typename T, typename... Ts>
|
|
||||||
struct count;
|
|
||||||
|
|
||||||
template <template <typename...> class Trait, typename T, typename... Ts>
|
template <template <typename...> class Trait, typename T, typename... Ts>
|
||||||
struct count {
|
struct count {
|
||||||
static constexpr size_t size =
|
static constexpr size_t size =
|
||||||
@ -248,9 +237,6 @@ struct count<Trait, T> {
|
|||||||
// count not
|
// count not
|
||||||
////////////////
|
////////////////
|
||||||
|
|
||||||
template <template <typename...> class Trait, typename T, typename... Ts>
|
|
||||||
struct count;
|
|
||||||
|
|
||||||
template <template <typename...> class Trait, typename T, typename... Ts>
|
template <template <typename...> class Trait, typename T, typename... Ts>
|
||||||
struct count_not {
|
struct count_not {
|
||||||
static constexpr size_t size =
|
static constexpr size_t size =
|
||||||
|
Loading…
Reference in New Issue
Block a user