1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
// Copyright (c) 2006-2018 Maxim Khizhinsky
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifdef CDSUNIT_ENABLE_BOOST_CONTAINER
#include <boost/version.hpp>
#include <cds/details/defs.h>
#if BOOST_VERSION >= 104800
#include <cds/container/striped_map/boost_flat_map.h>
#include "test_striped_map.h"
namespace {
struct test_traits
{
typedef boost::container::flat_map<
cds_test::striped_map_fixture::key_type,
cds_test::striped_map_fixture::value_type,
cds_test::striped_map_fixture::less
> container_type;
struct copy_policy {
typedef container_type::iterator iterator;
void operator()( container_type& m, iterator /*itInsert*/, iterator itWhat )
{
m.insert( *itWhat );
}
};
static bool const c_hasFindWith = false;
static bool const c_hasEraseWith = false;
};
INSTANTIATE_TYPED_TEST_CASE_P( BoostFlatMap, StripedMap, test_traits );
INSTANTIATE_TYPED_TEST_CASE_P( BoostFlatMap, RefinableMap, test_traits );
} // namespace
#else // BOOST_VERSION < 104800
// Skipped; for boost::container::flat_map you should use boost version 1.48 or above
#endif // BOOST_VERSION
#endif // #ifdef CDSUNIT_ENABLE_BOOST_CONTAINER
|