Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Ice::StreamableTraits< T, Enabler > Struct Template Reference

Provides traits for a type that can be marshaled or unmarshaled to/from a stream of bytes using the Slice encoding. More...

#include <Ice/Ice.h>

Static Public Attributes

static constexpr bool fixedLength
 Indicates if the type is always encoded on a fixed number of bytes.
static constexpr StreamHelperCategory helper
 The category trait, used for selecting the appropriate StreamHelper.
static constexpr int minWireSize
 The minimum number of bytes needed to marshal this type.

Detailed Description

template<typename T, typename Enabler = void>
struct Ice::StreamableTraits< T, Enabler >

Provides traits for a type that can be marshaled or unmarshaled to/from a stream of bytes using the Slice encoding.

This template is specialized for each type that can be marshaled/unmarshaled.

Template Parameters
TThe type to provide the traits for.
EnablerA type used to enable a partial specialization for several types. It should not be used in the partial specialization itself.
Remarks
Streamable traits for enumeration types provide two additional traits: minValue and maxValue.

Definition at line 119 of file StreamableTraits.h.


The documentation for this struct was generated from the following file: