/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ugc/binary/index_ugc.hpp
27 строк
382 B
Yuri Gorshenin
[ugc] Binary SerDes. (#6577)
13 июл 2017, 18:04
13 июл 2017, 18:04
9235813
Код
Авторство
О чём код?
#pragma once #include "ugc/types.hpp" #include <cstdint> #include <utility> namespace ugc { namespace binary { struct IndexUGC { using Index = uint32_t; IndexUGC() = default; template <typename U> IndexUGC(Index index, U && ugc) : m_index(index), m_ugc(std::forward<U>(ugc)) { } Index m_index = 0; UGC m_ugc = {}; }; } // namespace binary } // namespace ugc