Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:constexpr

7 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &t) noexcept { return static_cast<T&&>(t); }
8 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &&t) noexcept { return static_cast<T&&>(t); }
9 template<typename T> constexpr typename remove_reference<T>::type &&move(T &&t) noexcept { return static_cast<typename remove_reference<T>::type&&>(t); }
31 constexpr either_impl(select<0>, T &&t) : val(move(t)) {}
34 constexpr either_impl(select<N>, U &&u) : rest(select<N-1>(), move(u)) {}
36 constexpr static unsigned index(type<T>) { return 0; }
38 constexpr static unsigned index(type<U> t) {
49 constexpr const T &get(select<0>) { return val; }
50 template<unsigned N> constexpr const decltype(static_cast<const rest_t&>(rest).get(select<N-1>{})) get(select<N>) {
60 constexpr a(U &&...u) : value{forward<U>(u)...} {}
74 constexpr either(a<U> &&t) :
82 constexpr unsigned index() noexcept { return elem; }
88 constexpr const_get_result<N> get() {
96 constexpr const U &get() {
102 constexpr icd icd1 = an<int>(4);
103 constexpr icd icd2 = a<char>('x');
104 constexpr icd icd3 = a<double>(6.5);
111 constexpr non_triv() : n(5) {}
114 constexpr either<const icd*, non_triv> icd4 = a<const icd*>(&icd2);
115 constexpr either<const icd*, non_triv> icd5 = a<non_triv>();