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
      • Shared Libraries
    • Reference
      • Headers
      • Macros
      • Namespace boost::openmethod
  • boost::openmethod::VirtualTraits::peek
arrow_upward

boost::openmethod::VirtualTraits::peek

Returns a reference to the object to use for dispatch.

Synopsis

Declared in <boost/openmethod/core.hpp>

static
virtual_type const&
peek(T arg);

Description

Return a reference to the object to use for dispatch. arg may not be copied, moved or altered in any way.

Return Value

A reference to an object.

Parameters

Name Description

arg

An argument passed to the method call.

Created with MrDocs