Lines Matching defs:copies
35 // Particularly important in this test to ensure no copies are made.
47 // Particularly important in this test to ensure no copies are made.
86 // Used for probing the number of copies that occur if a type must be coerced
89 DerivedCopyCounter(int* copies, int* assigns)
90 : copies_(copies), assigns_(assigns) {
96 // Used for probing the number of copies in an argument.
99 CopyCounter(int* copies, int* assigns)
100 : copies_(copies), assigns_(assigns) {
109 // Probing for copies from coerscion.
127 int copies() const {
167 return counter.copies();
489 int copies = 0;
491 CopyCounter counter(&copies, &assigns);
495 EXPECT_EQ(0, copies);
505 int copies = 0;
508 CopyCounter counter(&copies, &assigns);
512 EXPECT_GE(1, copies);
515 copies = 0;
520 EXPECT_GE(1, copies);
523 copies = 0;
525 DerivedCopyCounter dervied(&copies, &assigns);
529 EXPECT_GE(2, copies);
605 // very tricky to avoid copies, maintain const correctness, and not