MCPcopy Create free account
hub / github.com/davisking/dlib / cref

Function cref

dlib/ref.h:59–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58 template <typename T>
59 reference_wrapper<const T> cref(
60 const T& obj
61 ) { return reference_wrapper<const T>(obj); }
62 /*!
63 ensures
64 - returns a reference_wrapper that contains a constant reference to obj.

Callers 2

test_functionsFunction · 0.85
test_lambdasFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 2

test_functionsFunction · 0.68
test_lambdasFunction · 0.68