Function ok

Summary

#include <toml/result.hpp>

(1) template <typename T>
    success< typename std::remove_cv< typename std::remove_reference< T >::type >::type > ok(T &&v)

(2) success< std::string > ok(const char *literal)

Function overload

Synopsis

#include <toml/result.hpp>

template <typename T>
success< typename std::remove_cv< typename std::remove_reference< T >::type >::type > ok(T &&v)

Description

No description yet.

Source

Lines 77-84 in toml/result.hpp.

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

Synopsis

#include <toml/result.hpp>

success< std::string > ok(const char *literal)

Description

No description yet.

Source

Lines 94-97 in toml/result.hpp.

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





Add Discussion as Guest

Log in