10 #define BOOST_TEST_MODULE ( ContainerMeta_test ) 11 #include <boost/test/unit_test.hpp> 20 #include <type_traits> 89 static_assert(std::is_same_v<util::collection_value_t <O *>,
O >);
90 static_assert(std::is_same_v<util::collection_value_access_t <O *>,
O &>);
93 static_assert(std::is_same_v<util::collection_value_t <O const*>,
O const >);
94 static_assert(std::is_same_v<util::collection_value_access_t <O const*>,
O const&>);
122 static_assert(std::is_same_v<
util::collection_reference_t<std::reference_wrapper<std::list<O>> >, std::reference_wrapper<std::list<O> >>);
138 constexpr std::size_t Size = 10U;
142 std::list<O> list {{
O{} }};
146 O const*
const cptrc = ptr;
147 O const*
const& cptrcr = cptrc;
148 auto refw = std::ref(list);
149 auto crefw = std::cref(list);
150 auto const uptr = std::unique_ptr<O>(
new O[Size]);
151 auto array_uptr = std::unique_ptr<O[Size]>();
152 auto garray_uptr = std::unique_ptr<O[]>(
new O[Size]);
184 constexpr std::size_t Size = 10U;
188 std::list<O> list {{
O{} }};
189 std::list<O> & ref = list;
190 std::list<O>
const& cref = list;
191 auto refw = std::ref(list);
192 auto crefw = std::cref(list);
198 auto const uptr = std::unique_ptr<O>(
new O[Size]);
199 auto array_uptr = std::unique_ptr<O[Size]>();
200 auto const array_uptrc = std::unique_ptr<O[Size]>();
201 auto garray_uptr = std::unique_ptr<O[]>(
new O[Size]);
auto array(Array const &a)
Returns a manipulator which will print the specified array.