Template Class OutputByteDeviceConcept

Class Documentation

template<typename Implementation>
class OutputByteDeviceConcept

Validates functionality for the output byte device concept.

This checks if a device can handle output of all char types (char, signed char, unsigned char).

Public Functions

inline ecl_compile_time_concept_test(OutputByteDeviceConcept)

Implements a concept test for output byte devices.

The following conditions are required by output byte devices:

  • long write(char &c) : write a single character to the device buffer.

  • long write(char *s, unsigned long n) : write a char buffer to the device buffer.

  • void flush() : a method for flushing the output device buffer to the device.

Along with the write function implemented for signed and unsigned char types.