proxygen
folly::detail::IndexableTraitsSeq< C > Struct Template Reference

#include <FormatTraits.h>

Inheritance diagram for folly::detail::IndexableTraitsSeq< C >:
folly::detail::FormatTraitsBase

Public Types

typedef C container_type
 
typedef C::value_type value_type
 
- Public Types inherited from folly::detail::FormatTraitsBase
typedef void enabled
 

Static Public Member Functions

static const value_typeat (const C &c, int idx)
 
static const value_typeat (const C &c, int idx, const value_type &dflt)
 

Detailed Description

template<class C>
struct folly::detail::IndexableTraitsSeq< C >

Definition at line 38 of file FormatTraits.h.

Member Typedef Documentation

template<class C>
typedef C folly::detail::IndexableTraitsSeq< C >::container_type

Definition at line 39 of file FormatTraits.h.

template<class C>
typedef C::value_type folly::detail::IndexableTraitsSeq< C >::value_type

Definition at line 40 of file FormatTraits.h.

Member Function Documentation

template<class C>
static const value_type& folly::detail::IndexableTraitsSeq< C >::at ( const C c,
int  idx 
)
inlinestatic

Definition at line 42 of file FormatTraits.h.

42  {
43  return c.at(idx);
44  }
char c
template<class C>
static const value_type& folly::detail::IndexableTraitsSeq< C >::at ( const C c,
int  idx,
const value_type dflt 
)
inlinestatic

Definition at line 46 of file FormatTraits.h.

46  {
47  return (idx >= 0 && size_t(idx) < c.size()) ? c.at(idx) : dflt;
48  }
char c

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