// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // // namespace std { namespace experimental { namespace pmr { // template > // using set = // ::std::set> // // template > // using multiset = // ::std::multiset> // // }}} // namespace std::experimental::pmr #include #include #include #include #include "test_macros.h" namespace pmr = std::experimental::pmr; int main(int, char**) { using V = char; using DC = std::less; using OC = std::greater; { using StdSet = std::set>; using PmrSet = pmr::set; static_assert(std::is_same::value, ""); } { using StdSet = std::set>; using PmrSet = pmr::set; static_assert(std::is_same::value, ""); } { pmr::set m; assert(m.get_allocator().resource() == pmr::get_default_resource()); } { using StdSet = std::multiset>; using PmrSet = pmr::multiset; static_assert(std::is_same::value, ""); } { using StdSet = std::multiset>; using PmrSet = pmr::multiset; static_assert(std::is_same::value, ""); } { pmr::multiset m; assert(m.get_allocator().resource() == pmr::get_default_resource()); } return 0; }