proxygen
folly::dptr_detail::ApplyVisitor1< 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::ApplyVisitor1< index, V, R, T, Types... >

Definition at line 129 of file DiscriminatedPtrDetail.h.

Member Function Documentation

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

Definition at line 130 of file DiscriminatedPtrDetail.h.

References ptr.

130  {
131  return runtimeIndex == 1
132  ? visitor(static_cast<T*>(ptr))
133  : ApplyVisitor1<index - 1, V, R, Types...>()(
134  runtimeIndex - 1, std::forward<V>(visitor), ptr);
135  }
void * ptr
STL namespace.

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