This header file includes <strf.hpp>
|
namespace strf {
template <typename CharT, std::size_t BuffSize>
class narrow_cfile_writer final: public destination<CharT>
{ /*...*/ };
class wide_cfile_writer final: public destination<wchar_t>
{ /*...*/ };
template <typename CharT = char>
/* ... */ to(std::FILE*);
/* ... */ wto(std::FILE*);
} // namespace strf
1. Class template narrow_cfile_writer
1.1. Synopsis
namespace strf {
template <typename CharT, std::size_t BuffSize>
class narrow_cfile_writer final: public destination<CharT> {
public:
explicit narrow_cfile_writer(std::FILE* dest);
narrow_cfile_writer(const narrow_cfile_writer&) = delete;
narrow_cfile_writer(narrow_cfile_writer&&) = delete;
~narrow_cfile_writer();
void recycle() noexcept;
struct result {
std::size_t count;
bool success;
};
result finish();
private:
CharT buffer[BuffSize]; // exposition only
};
} // namespace strf
1.2. Public member functions
~narrow_cfile_writer();
Effect |
Calls |
void recycle() override;
Effects |
|
Postconditions |
|
result finish();
Effects |
|
Return value |
|
2. Class template wide_cfile_writer
2.1. Synopsis
namespace strf {
class wide_cfile_writer final: public destination<wchar_t> {
public:
explicit wide_cfile_writer(std::FILE* dest);
wide_cfile_writer(const narrow_cfile_writer&) = delete;
wide_cfile_writer(narrow_cfile_writer&&) = delete;
~wide_cfile_writer();
void recycle() noexcept;
struct result {
std::size_t count;
bool success;
};
result finish();
private:
CharT buffer[min_destination_buffer_size]; // exposition only
};
} // namespace strf
2.2. Public member functions
~wide_cfile_writer();
Effect |
Calls |
void recycle() override;
Effects |
|
result finish();
Effects |
|
Return value |
|
3. Function template to
namespace strf {
template <typename CharT = char>
/* see below */ to(std::FILE* dest);
} // namespace strf
Return type |
|
Return value |
An object whose
|
4. Function wto
namespace strf {
/* see below */ wto(std::FILE* dest);
} // namespace strf
Return type |
|
Return value |
An object whose
|