Home
last modified time | relevance | path

Searched refs:old_cap (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/strings/basic.string/string.capacity/
H A DPR53170.pass.cpp40 typename S::size_type old_cap = s.capacity(); in test() local
42 assert(s.capacity() == old_cap); in test()
45 assert(s.capacity() < old_cap); in test()
51 typename S::size_type old_cap = s.capacity(); in test() local
53 assert(s.capacity() == old_cap); in test()
56 assert(s.capacity() == old_cap); in test()
62 typename S::size_type old_cap = s.capacity(); in test() local
64 assert(s.capacity() == old_cap); in test()
67 assert(s.capacity() == old_cap); in test()
/llvm-project-15.0.7/libcxx/test/libcxx/containers/sequences/vector/
H A Dexception_safety_exceptions_disabled.pass.cpp44 size_t old_cap = v.capacity(); in main() local
48 assert(v.capacity() == old_cap); in main()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.capacity/
H A Dreserve.pass.cpp31 typename S::size_type old_cap = s.capacity(); in test() local
36 assert(s.capacity() <= old_cap); in test()
H A Dshrink_to_fit.pass.cpp23 typename S::size_type old_cap = s.capacity(); in test() local
28 assert(s.capacity() <= old_cap); in test()
H A Dreserve_size.pass.cpp34 typename S::size_type old_cap = s.capacity(); in test() local
45 assert(s.capacity() >= old_cap); // reserve never shrinks as of P0966 (C++20) in test()