// Copyright 2024 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #include int main() { using namespace boost::uuids; std::size_t const N = 256; { boost::unordered_flat_set set; random_generator gen; for( std::size_t i = 0; i < N; ++i ) { set.insert( gen() ); } BOOST_TEST_EQ( set.size(), N ); } { boost::unordered_flat_set set; for( std::size_t i = 0; i < N; ++i ) { uuid id = { { static_cast( i ), 0 } }; set.insert( id ); } BOOST_TEST_EQ( set.size(), N ); } return boost::report_errors(); }