summaryrefslogtreecommitdiff
path: root/test/enumDetailsData.h
blob: b7bd601d282c7b4b559bfac8ef813abc2e68bbcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include <enumDetails.h>

enum GlobalUnscoped { aa, b, c };
enum class GlobalScoped { aa, b, c };

namespace ns {
	enum Unscoped { aa, b, c };
	enum class Scoped { aa, b, c };
}

namespace test1 {
	enum class DefaultDense { a, bee, ci, de };
}

namespace test2 {
	enum class NumberedSparse { a = 0, bee = 3, ci = -20, de = 100 };
}

template<> struct EnumValueCollection<test2::NumberedSparse> {
	// Any ordered integer_sequence which includes all enumeration values
	using Vs = std::integer_sequence<int, -100, -20, 0, 3, 10, 100, 1000>;
};