Function out

Summary

#include <include/type_safe/output_parameter.hpp>

(1) template <typename T>
    output_parameter< T > out(T &obj) noexcept

(2) template <typename T>
    output_parameter< T > out(deferred_construction< T > &o) noexcept

Function overload

Synopsis

#include <include/type_safe/output_parameter.hpp>

template <typename T>
output_parameter< T > out(T &obj) noexcept

Description

Returns
A new [ts::output_parameter]() using the reference obj as output.

Mentioned in

Source

Lines 150-154 in include/type_safe/output_parameter.hpp.

template <typename T>
output_parameter<T> out(T& obj) noexcept
{
    return output_parameter<T>(obj);
}

Synopsis

#include <include/type_safe/output_parameter.hpp>

template <typename T>
output_parameter< T > out(deferred_construction< T > &o) noexcept

Description

Returns
A new [ts::output_parameter]() using the [ts::deferred_construction]() as output.

Mentioned in

Source

Lines 157-161 in include/type_safe/output_parameter.hpp.

template <typename T>
output_parameter<T> out(deferred_construction<T>& o) noexcept
{
    return output_parameter<T>(o);
}





Add Discussion as Guest

Log in