Lines Matching refs:CopyOnly
29 struct CopyOnly { struct
30 explicit CopyOnly(int val) : value(val) {} in CopyOnly() function
32 CopyOnly(const CopyOnly& other) { value = other.value; } in CopyOnly() argument
34 CopyOnly& operator=(const CopyOnly& other) { in operator =() argument
39 CopyOnly(CopyOnly&&) = delete;
121 CopyOnly origin(5); in TEST()
122 Vector<CopyOnly, 10> origin_vector(3, origin); in TEST()
124 Vector<CopyOnly, 100> vector(origin_vector); in TEST()
187 CopyOnly origin(5); in TEST()
188 Vector<CopyOnly, 3> origin_vector(3, origin); in TEST()
190 Vector<CopyOnly, 2> vector; in TEST()
360 Vector<CopyOnly, 10> vector(1, CopyOnly(123)); in TEST()
361 vector.resize(3, CopyOnly(123)); in TEST()
370 Vector<CopyOnly, 10> vector; in TEST()
371 vector.resize(1000, CopyOnly(123)); in TEST()
380 Vector<CopyOnly, 10> vector(9, CopyOnly(123)); in TEST()
381 vector.resize(3, CopyOnly(123)); in TEST()
404 Vector<CopyOnly, 10> vector(10, CopyOnly(123)); in TEST()
405 vector.resize(0, CopyOnly(123)); in TEST()
439 static_assert(std::is_trivially_destructible_v<CopyOnly>);
440 static_assert(std::is_trivially_destructible_v<Vector<CopyOnly>>);
441 static_assert(std::is_trivially_destructible_v<Vector<CopyOnly, 99>>);