mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Add initial container population to insert iterator range tests
This commit is contained in:
@ -105,6 +105,10 @@ namespace {
|
||||
{
|
||||
template <class T, class X> void operator()(std::vector<T>& values, X& x)
|
||||
{
|
||||
for (std::size_t i = 0; i < 10; ++i) {
|
||||
x.insert(values[i]);
|
||||
}
|
||||
|
||||
enable_exceptions();
|
||||
thread_runner(values, [&x](boost::span<T> s) {
|
||||
try {
|
||||
@ -333,6 +337,10 @@ namespace {
|
||||
{
|
||||
template <class T, class X> void operator()(std::vector<T>& values, X& x)
|
||||
{
|
||||
for (std::size_t i = 0; i < 10; ++i) {
|
||||
x.insert(values[i]);
|
||||
}
|
||||
|
||||
enable_exceptions();
|
||||
thread_runner(values, [&x](boost::span<T> s) {
|
||||
try {
|
||||
@ -351,6 +359,10 @@ namespace {
|
||||
{
|
||||
template <class T, class X> void operator()(std::vector<T>& values, X& x)
|
||||
{
|
||||
for (std::size_t i = 0; i < 10; ++i) {
|
||||
x.insert(values[i]);
|
||||
}
|
||||
|
||||
enable_exceptions();
|
||||
thread_runner(values, [&x](boost::span<T> s) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user