SObjectizer-5 Extra
Classes | Public Types | List of all members
so_5::extra::mboxes::collecting_mbox::constexpr_size_traits_t< S > Struct Template Reference

A trait for mbox_template_t to be used when count of messages to collected is known at the compile time. More...

#include <collecting_mbox.hpp>

Classes

class  messages_collected_mixin_type
 A special mixin which must be used in actual type of messages_collected message for cases when messages are collected. More...
 
class  signals_collected_mixin_type
 A special mixin which must be used in actual type of messages_collected message for cases when signals are collected. More...
 
struct  size_specific_base_type
 A special mixin which must be used in actual type of collecting mbox. More...
 

Public Types

using container_type = std::array< message_ref_t, S >
 Type of container to be used in messages_collected message. More...
 

Detailed Description

template<std::size_t S>
struct so_5::extra::mboxes::collecting_mbox::constexpr_size_traits_t< S >

A trait for mbox_template_t to be used when count of messages to collected is known at the compile time.

Usage example:

Examples:
mboxes/collecting_mbox/advanced/main.cpp.

Definition at line 793 of file collecting_mbox.hpp.

Member Typedef Documentation

◆ container_type

template<std::size_t S>
using so_5::extra::mboxes::collecting_mbox::constexpr_size_traits_t< S >::container_type = std::array< message_ref_t, S >

Type of container to be used in messages_collected message.

Note
Because count of collected messages is known at compile time a very simple and efficient std::array is used.

Definition at line 802 of file collecting_mbox.hpp.


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