1#ifndef HALCHECK_LIB_STRING_HPP
2#define HALCHECK_LIB_STRING_HPP
11#include <halcheck/lib/optional.hpp>
12#include <halcheck/lib/type_traits.hpp>
17namespace halcheck {
namespace lib {
27template<typename T, HALCHECK_REQUIRE(lib::is_printable<T>())>
42template<typename T, HALCHECK_REQUIRE(lib::is_parsable<T>())>
68template<typename T, HALCHECK_REQUIRE(lib::is_parsable<T>())>
An implementation of std::optional.
Definition optional.hpp:338
static constexpr nullopt_t nullopt
An implementation of std::nullopt.
Definition optional.hpp:41
std::string to_string(const T &value)
Converts a value to a std::string using operator<<.
Definition string.hpp:28
lib::optional< std::string > getenv(const std::string &name)
Gets the value of an environment variable.
lib::optional< T > of_string(const std::string &value)
Converts a std::string to a value using operator>>.
Definition string.hpp:43