Functor applying the proper referenced_address()
function.
More...
#include <MetaUtils.h>
Public Member Functions | |
template<typename Ref > | |
decltype(auto) | operator() (Ref &&ref) const |
Static Public Member Functions | |
template<typename Ref > | |
static decltype(auto) | addressof (Ref &&ref) |
Functor applying the proper referenced_address()
function.
referenced_address()
This class operates in the same way as util::referenced_address()
, but it is easier to use in STL algorithms since it's not a template:
will fill dataPtr
with the pointers to the elements in data
. This is easier than taking the address of the correct template instance of util::referenced_address()
, or than writing a lambda function for that.
Definition at line 609 of file MetaUtils.h.
|
inlinestatic |
Definition at line 615 of file MetaUtils.h.
|
inline |
Definition at line 611 of file MetaUtils.h.