Skip to content
Snippets Groups Projects

A compile-time map for a subset of an enumeration

Merged Sergei Zharko requested to merge s.zharko/cbmroot:enum-mapper into master

The merge request introduces a map of a subset of an enumeration entries.

Example:

using CbmRecoDetMapper_t = cbm::util::EnumMapper<
  ECbmModuleId::kMvd, 
  ECbmModuleId::kSts,
  ECbmModuleId::kRich,
  ECbmModuleId::kMuch,
  ECbmModuleId::kTrd,
  ECbmModuleId::kTof,
  ECbmModuleId::kMust,
  ECbmModuleId::kBmon,
  ECbmModuleId::kTrd2d,
  ECbmModuleId::kFsd>;

template<typename T>
using CbmRecoDetMap_t = cbm::util::EnumMap<T, CbmRecoDetMapper_t>;

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading