Celeritas 0.7.0-dev.519+develop.4b271433b
Loading...
Searching...
No Matches
Public Attributes | Friends | List of all members
celeritas::StreamableLazy< F > Struct Template Reference

Lazily evaluate a functor that streams content. More...

#include <StreamableLazy.hh>

Public Attributes

func
 

Friends

std::ostream & operator<< (std::ostream &os, StreamableLazy const &lazy)
 Write to stream.
 
std::string to_string (StreamableLazy const &svar)
 Save as a string.
 

Detailed Description

template<class F>
struct celeritas::StreamableLazy< F >

Lazily evaluate a functor that streams content.

Example:
std::cout << StreamableLazy{[]() {
return do_something_expensive_and_printable();
}} << std::endl;
Lazily evaluate a functor that streams content.
Definition StreamableLazy.hh:28

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