Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index_ugc.hpp « binary « ugc - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bad35a25b8cc60303bd1c9ce0163b24979590cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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