proxygen
folly::dptr_detail::ApplyConstVisitor1< index, V, R, T, Types... > Struct Template Reference

#include <DiscriminatedPtrDetail.h>

Public Member Functions

operator() (size_t runtimeIndex, V &&visitor, void *ptr) const
 

Detailed Description

template<size_t index, typename V, typename R, typename T, typename... Types>
struct folly::dptr_detail::ApplyConstVisitor1< index, V, R, T, Types... >

Definition at line 149 of file DiscriminatedPtrDetail.h.

Member Function Documentation

template<size_t index, typename V , typename R , typename T , typename... Types>
R folly::dptr_detail::ApplyConstVisitor1< index, V, R, T, Types... >::operator() ( size_t  runtimeIndex,
V &&  visitor,
void *  ptr 
) const
inline

Definition at line 150 of file DiscriminatedPtrDetail.h.

References ptr.

150  {
151  return runtimeIndex == 1
152  ? visitor(static_cast<const T*>(ptr))
153  : ApplyConstVisitor1<index - 1, V, R, Types...>()(
154  runtimeIndex - 1, std::forward<V>(visitor), ptr);
155  }
void * ptr
STL namespace.

The documentation for this struct was generated from the following file: