forked from boostorg/container
Adding Constructor Template Auto Deduction guides.
This commit is contained in:
@@ -282,6 +282,20 @@ bool do_test()
|
||||
if(!test::CheckEqualContainers(cntdeque, stddeque)) return 1;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
//Check Constructor Template Auto Deduction
|
||||
{
|
||||
auto gold = MyStdDeque{ 1, 2, 3 };
|
||||
auto test = deque(gold.begin(), gold.end());
|
||||
if(!test::CheckEqualContainers(gold, test)) return false;
|
||||
}
|
||||
{
|
||||
auto gold = MyStdDeque{ 1, 2, 3 };
|
||||
auto test = deque(gold.begin(), gold.end(), new_allocator<int>());
|
||||
if(!test::CheckEqualContainers(gold, test)) return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
std::cout << std::endl << "Test OK!" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user