Home | History | Annotate | Download | only in class.copy

Lines Matching defs:Trivial

17 struct Trivial {};
18 using _ = trivially_copyable<Trivial>;
20 // A copy/move constructor for class X is trivial if it is not user-provided,
40 struct VBase : virtual Trivial {};
43 // and the constructor selected to copy/move each [direct subobject] is trivial
53 // We can select a non-trivial copy ctor even if there is a trivial one.
67 // Both trivial and non-trivial special members.
69 TNT(const TNT &) = default; // trivial
70 TNT(TNT &); // non-trivial
72 TNT(TNT &&) = default; // trivial
73 TNT(const TNT &&); // non-trivial
85 // This has only trivial special members.
97 // This has only trivial special members.
161 // which is trivial.
172 // so moves of it use PrivateMove's move ctor, which is not trivial.
187 // Copy ctor is deleted but trivial.
196 // Implicit copy ctor calls deleted trivial copy ctor.
207 // Copy ctor is trivial.
208 // Move ctor is trivial.
211 // Implicit copy ctor calls trivial copy ctor.
214 // Implicit move ctor calls trivial move ctor.