Lines Matching refs:type
16 // Macro with the boilerplate that makes a type move-only in C++03.
21 // a "move-only" type. Unlike DISALLOW_COPY_AND_ASSIGN, this macro should be
51 // like they're using a phantom type.
87 // gives us a move-only type.
126 // It is tempting to want to use the RValue type in function parameters, but
133 // Boost.Move makes RValue a fieldless child of the move-only type. RValue&
138 // reference as if it were the move-only type itself. Unfortunately,
166 // value of type scoped_ptr<Child> even if you add a constructor to
174 // private to the move-only type, and we don't use the reinterpret_cast<> hack.
176 // In Boost.Move, RValue is the boost::rv<> template. This type can be used
181 // that can take advantage of rv<> to avoid extra copies of a type. However you
203 // If you include a move-only type as a field inside a class that does not
212 #define WEBRTC_MOVE_ONLY_TYPE_FOR_CPP_03(type, rvalue_type) \
215 explicit rvalue_type(type* object) : object(object) {} \
216 type* object; \
218 type(type&); \
219 void operator=(type&); \
222 type Pass() { return type(rvalue_type(this)); } \