PrevUpHomeNext

kpp::kspt::ostream


---- kpp::kspt::ostream << Output Concepts << Output << Kpp c++ ----

kpp::kspt::ostream is a c++ concept of kpp c++ library. It requires a type satisfy kpp output stream.

template <typename ostream_type_t20, typename type_t21>
concept ostream = ...;

It requires the type_t21 value can be outputed to ostream type ostream_type_t20 .

Note that the type constrained by kpp::kspt::ostream is not std::stream-like.

kpp::kspt::ostream requires:

c++ example

#include <kpp/print.hpp>
#include <ostream>

static_assert(kpp::kspt::ostream<kpp::backends::ostream_dummy_std_ostream, std::string>);

static_assert(! kpp::kspt::ostream<std::ostream, std::string>);

int main()
{
}

See Also

kpp::print

kpp::kspt::ostream_printable

kpp::kspt::register_printable

Back

Up










Deck

Kpp Home


PrevUpHomeNext