mirror of https://github.com/edouarda/brigand.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
964 B
C++
12 lines
964 B
C++
|
|
#include <brigand/sequences/erase.hpp>
|
|
#include <brigand/sequences/list.hpp>
|
|
#include <type_traits>
|
|
|
|
static_assert(std::is_same<brigand::erase_c<brigand::list<int>, 0>, brigand::list<>>::value, "invalid erase_c result");
|
|
static_assert(std::is_same<brigand::erase_c<brigand::list<int, char, bool>, 0>, brigand::list<char, bool>>::value, "invalid erase_c result");
|
|
static_assert(std::is_same<brigand::erase_c<brigand::list<int, char, bool>, 1>, brigand::list<int, bool>>::value, "invalid erase_c result");
|
|
static_assert(std::is_same<brigand::erase_c<brigand::list<int, char, bool>, 2>, brigand::list<int, char>>::value, "invalid erase_c result");
|
|
static_assert(std::is_same<brigand::erase_c<brigand::list<int, char, bool, int&>, 3>, brigand::list<int, char, bool>>::value, "invalid erase_c result");
|
|
static_assert(std::is_same<brigand::erase_c<brigand::list<int, char, bool, int&, void>, 4>, brigand::list<int, char, bool, int&>>::value, "invalid erase_c result");
|