userver: userver/utils/box.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
box.hpp File Reference

Detailed Description

Remote storage for a single item. Implemented as a unique pointer that is never null, except when moved from.

Definition in file box.hpp.

Go to the source code of this file.

#include <memory>
#include <type_traits>
#include <utility>
#include <userver/formats/parse/to.hpp>
#include <userver/formats/serialize/to.hpp>
#include <userver/logging/log_helper_fwd.hpp>
#include <userver/utils/assert.hpp>
+ Include dependency graph for box.hpp:

Classes

class  utils::Box< T >
 Remote storage for a single item. Implemented as a unique pointer that is never null, except when moved from. More...
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename Value , typename T >
Box< T > utils::Parse (const Value &value, formats::parse::To< Box< T > >)
 
template<typename Value , typename T >
Value utils::Serialize (const Box< T > &value, formats::serialize::To< Value >)
 
template<typename StringBuilder , typename T >
void utils::WriteToStream (const Box< T > &value, StringBuilder &sw)
 
template<typename T >
logging::LogHelperutils::operator<< (logging::LogHelper &lh, const Box< T > &box)