print overloads
Declared in <bdlb_printmethods.h>
Format the specified object to the specified output stream.
std::ostream&
print(
std::ostream& stream,
char object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified object to the specified output stream.
std::ostream&
print(
std::ostream& stream,
unsigned char object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified std::monostate object to the specified output stream.
std::ostream&
print(
std::ostream& stream,
std::monostate const& object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified object to the specified output stream.
template<class TYPE>
std::ostream&
print(
std::ostream& stream,
TYPE const& object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified std::optional object to the specified output stream.
template<class TYPE>
std::ostream&
print(
std::ostream& stream,
std::optional<TYPE> const& object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified std::variant object to the specified output stream.
template<class... TYPE>
std::ostream&
print(
std::ostream& stream,
std::variant<TYPE...> const& object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified character vector object to the specified output stream.
template<class ALLOC>
std::ostream&
print(
std::ostream& stream,
bsl::vector<char, ALLOC> const& object,
int level = 0,
int spacesPerLevel = 4);
» more...
Format the specified string object to the specified output stream.
template<
class CHAR_T,
class CHAR_TRAITS_T,
class ALLOC>
std::ostream&
print(
std::ostream& stream,
bsl::basic_string<CHAR_T, CHAR_TRAITS_T, ALLOC> const& object,
int level = 0,
int spacesPerLevel = 4);
» more...
reference to stream
| Name | Description |
|---|---|
| stream | output stream |
| object | character to print |
| level | initial indentation level |
| spacesPerLevel | spaces per indentation level |