proxygen
folly::gen::detail::TypeAssertion< Expected > Class Template Reference

#include <Base-inl.h>

Inheritance diagram for folly::gen::detail::TypeAssertion< Expected >:
folly::gen::Operator< TypeAssertion< Expected > > folly::gen::FBounded< Self >

Public Member Functions

template<class Source , class Value >
const Source & compose (const GenImpl< Value, Source > &source) const
 
template<class Source , class Value >
Source && compose (GenImpl< Value, Source > &&source) const
 
- Public Member Functions inherited from folly::gen::Operator< TypeAssertion< Expected > >
ResultGen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::FBounded< Self >
const Self & self () const
 
Self & self ()
 

Additional Inherited Members

- Protected Member Functions inherited from folly::gen::Operator< TypeAssertion< Expected > >
 Operator ()=default
 
 Operator (Operator &&) noexcept=default
 
 Operator (const Operator &)=default
 
Operatoroperator= (Operator &&) noexcept=default
 
Operatoroperator= (const Operator &)=default
 

Detailed Description

template<class Expected>
class folly::gen::detail::TypeAssertion< Expected >

Definition at line 1317 of file Base-inl.h.

Member Function Documentation

template<class Expected >
template<class Source , class Value >
const Source& folly::gen::detail::TypeAssertion< Expected >::compose ( const GenImpl< Value, Source > &  source) const
inline

Definition at line 1320 of file Base-inl.h.

References folly::gen::FBounded< Self >::self(), and value.

1320  {
1321  static_assert(
1322  std::is_same<Expected, Value>::value, "assert_type() check failed");
1323  return source.self();
1324  }
static const char *const value
Definition: Conv.cpp:50
template<class Expected >
template<class Source , class Value >
Source&& folly::gen::detail::TypeAssertion< Expected >::compose ( GenImpl< Value, Source > &&  source) const
inline

Definition at line 1327 of file Base-inl.h.

References folly::gen::move, and value.

1327  {
1328  static_assert(
1329  std::is_same<Expected, Value>::value, "assert_type() check failed");
1330  return std::move(source.self());
1331  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
static const char *const value
Definition: Conv.cpp:50

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