Seastar
High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::lazy_eval< Func > Class Template Reference

Detailed Description

template<typename Func>
class seastar::lazy_eval< Func >

This class is a wrapper for a lazy evaluation of a value.

The value is evaluated by a functor that gets no parameters, which is provided to a lazy_value constructor.

The instance may be created only using seastar::value_of helper function.

The evaluation is triggered by operator().

#include <seastar/util/lazy.hh>

Public Member Functions

auto operator() ()
 Evaluate a value. More...
 
auto operator() () const
 Evaluate a value (const version). More...
 

Member Function Documentation

◆ operator()() [1/2]

template<typename Func >
auto seastar::lazy_eval< Func >::operator() ( )
inline

Evaluate a value.

Returns
the evaluated value

◆ operator()() [2/2]

template<typename Func >
auto seastar::lazy_eval< Func >::operator() ( ) const
inline

Evaluate a value (const version).

Returns
the evaluated value

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