Struct sample_fn

Inheritance Relationships

Base Type

Struct Documentation

struct sample_fn : public beluga::views::detail::sample_base_fn

Implementation detail for a sample range adaptor object.

Public Functions

template<class T, class U, class V>
inline constexpr auto operator()(T &&t, U &&u, V &v) const

Overload that takes three arguments.

template<class T, class U>
inline constexpr auto operator()(T &&t, U &&u) const

Overload that takes two arguments.

template<class T>
inline constexpr auto operator()(T &&t) const

Overload that takes one argument.

template<class Range, class URNG>
inline constexpr auto operator()(Range &&range, std::reference_wrapper<URNG> engine) const

Overload that unwraps the engine reference from a view closure.