Function err

Summary

#include <toml/result.hpp>

(1) template <typename T>
    failure< typename std::remove_cv< typename std::remove_reference< T >::type >::type > err(T &&v)

(2) failure< std::string > err(const char *literal)

Function overload

Synopsis

#include <toml/result.hpp>

template <typename T>
failure< typename std::remove_cv< typename std::remove_reference< T >::type >::type > err(T &&v)

Description

No description yet.

Source

Lines 85-92 in toml/result.hpp.

template<typename T>
failure<typename std::remove_cv<typename std::remove_reference<T>::type>::type>
err(T&& v)
{
    return failure<
        typename std::remove_cv<typename std::remove_reference<T>::type>::type
        >(std::forward<T>(v));
}

Synopsis

#include <toml/result.hpp>

failure< std::string > err(const char *literal)

Description

No description yet.

Source

Lines 98-101 in toml/result.hpp.

inline failure<std::string> err(const char* literal)
{
    return failure<std::string>(std::string(literal));
}





Add Discussion as Guest

Log in