32 lines
581 B
C++
32 lines
581 B
C++
/*
|
||
* StatusManager.h
|
||
*
|
||
* Created on: 24 нояб. 2018 г.
|
||
* Author: titov
|
||
*/
|
||
|
||
#ifndef SOURCE_SYSTEMIC_STATUSMANAGER_H_
|
||
#define SOURCE_SYSTEMIC_STATUSMANAGER_H_
|
||
|
||
#include "ValueManager.hpp"
|
||
#include <cstddef>
|
||
|
||
namespace systemic {
|
||
|
||
typedef ValueManager<bool> StatusManager;
|
||
|
||
template<std::size_t num>
|
||
struct StatusManagerBox {
|
||
StatusManager::Record records[num];
|
||
StatusManager manager;
|
||
|
||
StatusManagerBox( std::pmr::memory_resource* allocator ) :
|
||
records(), manager( records, num, allocator ) {}
|
||
};
|
||
|
||
}
|
||
|
||
|
||
|
||
#endif /* SOURCE_SYSTEMIC_STATUSMANAGER_H_ */
|