//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // reference_wrapper // template reference_wrapper cref(const T& t); #include #include int main() { int i = 0; std::reference_wrapper r = std::cref(i); assert(&r.get() == &i); }