mirror of
https://github.com/boostorg/hana.git
synced 2026-02-21 03:02:11 +00:00
List: refactor documentation
This commit is contained in:
@@ -12,7 +12,7 @@ using namespace boost::hana;
|
||||
int main() {
|
||||
//! [main]
|
||||
BOOST_HANA_STATIC_ASSERT(cons(1, list()) == list(1));
|
||||
BOOST_HANA_STATIC_ASSERT(cons(1, list('2', "3")) == list(1, '2', "3"));
|
||||
BOOST_HANA_STATIC_ASSERT(cons(1, cons('2', cons("3", list()))) == list(1, '2', "3"));
|
||||
BOOST_HANA_STATIC_ASSERT(cons(1, list('2', 3.3)) == list(1, '2', 3.3));
|
||||
BOOST_HANA_STATIC_ASSERT(cons(1, cons('2', cons(3.3, list()))) == list(1, '2', 3.3));
|
||||
//! [main]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user