Gobelijn API documentation
- generated for commit a0cbea7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
select.h
Go to the documentation of this file.
1
#ifndef GOBELIJN_META_SELECT_H
2
#define GOBELIJN_META_SELECT_H
3
/*
4
* This file is part of the gobelijn software.
5
* Gobelijn is free software: you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by the
7
* Free Software Foundation, either version 3 of the License, or any later
8
* version. Gobelijn is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE.
11
* See the GNU General Public License for details. You should have received
12
* a copy of the GNU General Public License along with the software. If not,
13
* see <http://www.gnu.org/licenses/>.
14
*
15
* Copyright 2012, Jan Broeckhove.
16
*/
22
// BEGIN_SNIPPET{FullSource}
24
template
<
typename
T1,
typename
T2,
bool
b>
25
struct
select
;
26
28
template
<
typename
T1,
typename
T2>
29
struct
select
<T1, T2, true>
30
{
31
using
type
= T1;
32
};
33
35
template
<
typename
T1,
typename
T2>
36
struct
select
<T1, T2, false>
37
{
38
using
type
= T2;
39
};
40
// END_SNIPPET{FullSource}
41
42
#endif // end-of-include-guard
select< T1, T2, true >::type
T1 type
Definition:
select.h:31
select< T1, T2, false >::type
T2 type
Definition:
select.h:38
select
Primary template for selection between two types.
Definition:
select.h:25
main
cpp
template_meta
select.h
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6