| //===----------------------------------------------------------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| // pair<iterator, bool> insert(const value_type& v); |
| #include "min_allocator.h" |
| template<class Container> |
| typedef std::pair<typename M::iterator, bool> R; |
| typedef typename M::value_type VT; |
| assert(r.first == m.begin()); |
| assert(r.first == m.begin()); |
| assert(r.first == prev(m.end())); |
| assert(r.first == prev(m.end())); |
| do_insert_cv_test<std::set<int> >(); |
| typedef std::set<int, std::less<int>, min_allocator<int>> M; |