mirror of
https://github.com/boostorg/hana.git
synced 2026-02-01 08:32:11 +00:00
- Rename elem to contains - Rename subset to is_subset, and make is_subset applicable in infix notation - Add the at_key method - operator[] is now bound to at_key instead of find
20 lines
424 B
C++
20 lines
424 B
C++
/*
|
|
@copyright Louis Dionne 2015
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
|
|
#include <boost/hana/assert.hpp>
|
|
#include <boost/hana/config.hpp>
|
|
|
|
//! [main]
|
|
#include <boost/hana/set.hpp>
|
|
using namespace boost::hana;
|
|
|
|
|
|
int main() {
|
|
constexpr auto xs = set(1, 2.2, 'x');
|
|
static_assert(contains(xs, 'x'), "");
|
|
}
|
|
//! [main]
|