Boost.OpenMethod

    • Motivation
    • Basic Features
      • Methods and Overriders
      • Performance
      • Smart Pointers
      • Header and Implementation Files
      • Namespaces
      • Friends
      • Multiple Dispatch
    • Advanced Features
      • Core API
      • Registries and Policies
      • Custom RTTI
      • Error Handling
      • Virtual Pointer Alternatives
      • Interoperation with any
      • Interoperation with Boost.TypeErasure
      • Shared Libraries
    • Reference
      • Headers
      • Macros
      • Namespace boost::openmethod
    • Acknowledgements
  • boost::openmethod::virtual_traits<boost::any&, Registry>::peek
arrow_upward

boost::openmethod::virtual_traits<boost::any&, Registry>::peek

Returns a const reference to the any argument.

Synopsis

Declared in <boost/openmethod/interop/boost_any.hpp>

static
boost::any const&
peek(boost::any const& arg);

Return Value

A const reference to arg.

Parameters

Name

Description

arg

A reference to a boost::any.

Created with MrDocs