Home
last modified time | relevance | path

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

/external/libcxx/test/std/strings/basic.string/string.capacity/
Dreserve.pass.cpp27 typename S::size_type old_cap = s.capacity(); in test() local
32 assert(s.capacity() <= old_cap); in test()
40 typename S::size_type old_cap = s.capacity(); in test() local
41 ((void)old_cap); // Prevent unused warning in test()
50 assert(s.capacity() >= old_cap); // resize never shrinks as of P0966 in test()
Dshrink_to_fit.pass.cpp24 typename S::size_type old_cap = s.capacity(); in test() local
29 assert(s.capacity() <= old_cap); in test()
/external/llvm-project/libcxx/test/libcxx/strings/basic.string/string.capacity/
Dreserve.pass.cpp28 typename S::size_type old_cap = s.capacity(); in test() local
30 assert(s.capacity() == old_cap); in test()
32 assert(s.capacity() < old_cap); in test()
/external/llvm-project/libcxx/test/libcxx/containers/sequences/vector/
Dexception_safety_exceptions_disabled.pass.cpp44 size_t old_cap = v.capacity(); in main() local
48 assert(v.capacity() == old_cap); in main()
/external/llvm-project/libcxx/test/std/strings/basic.string/string.capacity/
Dreserve.pass.cpp31 typename S::size_type old_cap = s.capacity(); in test() local
36 assert(s.capacity() <= old_cap); in test()
Dshrink_to_fit.pass.cpp23 typename S::size_type old_cap = s.capacity(); in test() local
28 assert(s.capacity() <= old_cap); in test()
Dreserve_size.pass.cpp41 typename S::size_type old_cap = s.capacity(); in test() local
52 assert(s.capacity() >= old_cap); // reserve never shrinks as of P0966 (C++20) in test()