2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-02 08:52:11 +00:00

[Searchable] Swap {all,any,none} and their _of variant for consistency with the STL

This commit is contained in:
Louis Dionne
2015-03-03 13:44:58 -05:00
parent 244c7a6688
commit f017c4493a
43 changed files with 341 additions and 341 deletions

View File

@@ -318,22 +318,22 @@ int main() {
// Searchable
{
// any
// any_of
{
BOOST_HANA_CONSTANT_CHECK(
any(BOOST_HANA_STRING("abcd"), [](auto c) {
any_of(BOOST_HANA_STRING("abcd"), [](auto c) {
return equal(c, char_<'b'>);
})
);
BOOST_HANA_CONSTANT_CHECK(
not_(any(BOOST_HANA_STRING(""), [](auto c) {
not_(any_of(BOOST_HANA_STRING(""), [](auto c) {
return true_;
}))
);
BOOST_HANA_CONSTANT_CHECK(
not_(any(BOOST_HANA_STRING("abcd"), [](auto c) {
not_(any_of(BOOST_HANA_STRING("abcd"), [](auto c) {
return equal(c, char_<'z'>);
}))
);