Files
boost_unordered/test/unordered/link_test_1.cpp
T

40 lines
1.0 KiB
C++
Raw Normal View History

// Copyright 2006-2009 Daniel James.
2023-02-14 10:27:12 -08:00
// Copyright 2022-2023 Christian Mazakas.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "../helpers/unordered.hpp"
2022-10-12 14:05:25 -07:00
#ifdef BOOST_UNORDERED_FOA_TESTS
2023-02-14 10:27:12 -08:00
void foo(boost::unordered_flat_set<int>&, boost::unordered_flat_map<int, int>&,
boost::unordered_node_set<int>&, boost::unordered_node_map<int, int>&);
2022-10-12 14:05:25 -07:00
int main()
{
boost::unordered_flat_set<int> x1;
boost::unordered_flat_map<int, int> x2;
2023-02-14 10:27:12 -08:00
boost::unordered_node_set<int> x3;
boost::unordered_node_map<int, int> x4;
2022-10-12 14:05:25 -07:00
2023-02-14 10:27:12 -08:00
foo(x1, x2, x3, x4);
2022-10-12 14:05:25 -07:00
return 0;
}
#else
2017-02-19 13:05:17 +00:00
void foo(boost::unordered_set<int>&, boost::unordered_map<int, int>&,
boost::unordered_multiset<int>&, boost::unordered_multimap<int, int>&);
int main()
{
boost::unordered_set<int> x1;
boost::unordered_map<int, int> x2;
boost::unordered_multiset<int> x3;
boost::unordered_multimap<int, int> x4;
foo(x1, x2, x3, x4);
2017-02-19 13:05:17 +00:00
return 0;
}
2022-10-12 14:05:25 -07:00
#endif