COMMS
Template library intended to help with implementation of communication protocols.
comms::option::app::CustomStorageType< TType > Struct Template Reference

#include "comms/options.h"

Detailed Description

template<typename TType>
struct comms::option::app::CustomStorageType< TType >

Set custom storage type for fields like comms::field::String or comms::field::ArrayList.

By default comms::field::String uses std::string and comms::field::ArrayList uses std::vector as their internal storage types. The FixedSizeStorage option forces them to use comms::util::StaticString and comms::util::StaticVector instead. This option can be used to provide any other third party type. Such type must define the same public interface as std::string (when used with comms::field::String) or std::vector (when used with comms::field::ArrayList).

Template Parameters
TTypeCustom storage type

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