16 Buffers [buffer]

16.6 Buffer type traits [buffer.traits]

namespace std {
namespace experimental {
namespace net {
inline namespace v1 {

  template<class T> struct is_mutable_buffer_sequence;
  template<class T> struct is_const_buffer_sequence;
  template<class T> struct is_dynamic_buffer;

} // inline namespace v1
} // namespace net
} // namespace experimental
} // namespace std

This subclause contains templates that may be used to query the properties of a type at compile time. Each of these templates is a UnaryTypeTrait (C++ 2014 [meta.rqmts]) with a BaseCharacteristic of true_type if the corresponding condition is true, otherwise false_type.

Table 15 — Buffer type traits
TemplateConditionPreconditions
template<class T>
struct is_mutable_buffer_sequence
T meets the syntactic requirements for mutable buffer sequence ([buffer.reqmts.mutablebuffersequence]). T is a complete type.
template<class T>
struct is_const_buffer_sequence
T meets the syntactic requirements for constant buffer sequence ([buffer.reqmts.constbuffersequence]). T is a complete type.
template<class T>
struct is_dynamic_buffer
T meets the syntactic requirements for dynamic buffer ([buffer.reqmts.dynamicbuffer]). T is a complete type.