00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef INSTIGATE_SCRIPTING_GENERIC_SELECT_HPP
00016 #define INSTIGATE_SCRIPTING_GENERIC_SELECT_HPP
00017
00018 namespace instigate {
00019
00020 namespace scripting {
00021
00022 namespace generic {
00023
00036 template <bool b, typename T, typename M>
00037 struct select
00038 {
00039 typedef T result_type;
00040 };
00041
00042 template <typename T, typename M>
00043 struct select<false, T, M>
00044 {
00045 typedef M result_type;
00046 };
00047
00048 }
00049
00050 }
00051
00052 }
00053
00054
00055 #endif // INSTIGATE_SCRIPTING_GENERIC_SELECT_HPP