HomeSort by relevance Sort by last modified time
    Searched full:constexpr (Results 51 - 75 of 1617) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/clang/test/CXX/lex/lex.literal/lex.ext/
p8.cpp 4 constexpr const char *operator "" _id(const char *p, size_t) { return p; }
5 constexpr const char *s = "foo"_id "bar" "baz"_id "quux";
7 constexpr bool streq(const char *p, const char *q) {
12 constexpr const char *operator "" _trim(const char *p, size_t n) {
15 constexpr const char *t = " " " "_trim " foo";
  /external/clang/test/SemaCXX/
discrim-union.cpp 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)...} {
    [all...]
constant-expression-cxx11.cpp 13 template<typename T> constexpr T id(const T &t) { return t; }
14 template<typename T> constexpr T min(const T &a, const T &b) {
17 template<typename T> constexpr T max(const T &a, const T &b) {
20 template<typename T, size_t N> constexpr T *begin(T (&xs)[N]) { return xs; }
21 template<typename T, size_t N> constexpr T *end(T (&xs)[N]) { return xs + N; }
24 constexpr int zero() const { return 0; }
38 constexpr B *p = &d;
39 constexpr C *q = &d;
45 constexpr B &pp = d;
46 constexpr C &qq = d
    [all...]
constant-expression-cxx1y.cpp 5 constexpr S(int);
11 constexpr int &get(int n) { return arr[n]; }
12 constexpr const int &get(int n) const { return arr[n]; }
19 // Compound-statements can be used in constexpr functions.
20 constexpr int e() {{{{}} return 5; }}
23 // Types can be defined in constexpr functions.
24 constexpr int f() {
28 constexpr S(E e) : e(e) {}
29 constexpr int get() { return e; }
37 // Variables can be declared in constexpr functions
    [all...]
cxx0x-class.cpp 23 static const float x = 5.0f; // expected-warning {{requires 'constexpr'}} expected-note {{add 'constexpr'}}
24 static const float y = foo(); // expected-warning {{requires 'constexpr'}} expected-note {{add 'constexpr'}}
25 static constexpr float x2 = 5.0f;
26 static constexpr float y2 = foo(); // expected-error {{must be initialized by a constant expression}} expected-note {{non-constexpr function 'foo'}}
builtin-assume-aligned.cpp 4 constexpr int *p = 0;
6 constexpr int *k = (int *) __builtin_assume_aligned(p, 16, n = 5);
8 constexpr void *l = __builtin_assume_aligned(p, 16);
12 constexpr int *c = (int *) __builtin_assume_aligned(p, 16);
16 constexpr void *m = __builtin_assume_aligned(&n, 16);
20 constexpr void *q1 = __builtin_assume_aligned(&n, 4, 2);
23 constexpr void *q2 = __builtin_assume_aligned(&n, 4, -2);
24 constexpr void *q3 = __builtin_assume_aligned(&n, 4, 4);
25 constexpr void *q4 = __builtin_assume_aligned(&n, 4, -4);
30 constexpr void *r1 = __builtin_assume_aligned(&ar1[2], 16)
    [all...]
constexpr-nqueens.cpp 9 constexpr Board() : State(0), Failed(false) {}
10 constexpr Board(const Board &O) : State(O.State), Failed(O.Failed) {}
11 constexpr Board(uint64_t State, bool Failed = false) :
13 constexpr Board addQueen(int Row, int Col) {
16 constexpr int getQueenRow(int Col) {
19 constexpr bool ok(int Row, int Col) {
22 constexpr bool okRecurse(int Row, int Col, int CheckCol) {
29 constexpr bool at(int Row, int Col) {
32 constexpr bool check(const char *, int=0, int=0);
35 constexpr Board buildBoardRecurse(int N, int Col, const Board &B)
    [all...]
  /external/clang/test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/
p2.cpp 3 // An explicitly-defaulted function may be declared constexpr only if it would
4 // have been implicitly declared as constexpr.
6 constexpr S1() = default; // expected-error {{defaulted definition of default constructor is not constexpr}}
7 constexpr S1(const S1&) = default;
8 constexpr S1(S1&&) = default;
9 constexpr S1 &operator=(const S1&) const = default; // expected-error {{explicitly-defaulted copy assignment operator may not have}}
10 constexpr S1 &operator=(S1&&) const = default; // expected-error {{explicitly-defaulted move assignment operator may not have}}
11 constexpr ~S1() = default; // expected-error {{destructor cannot be marked constexpr}}
    [all...]
  /external/clang/test/CXX/class/class.union/
p2-0x.cpp 6 static constexpr int k1 = 0;
9 static constexpr double k4 = k2;
10 static const double k5 = k4; // expected-error {{requires 'constexpr' specifier}} expected-note {{add 'constexpr'}}
14 constexpr int U1::k1;
15 constexpr int U1::k2;
27 template<typename T> constexpr int U2<T>::k1 = sizeof(U2<T>);
  /system/tpm/trunks/
dbus_interface.h 23 constexpr char kTrunksInterface[] = "com.android.Trunks";
24 constexpr char kTrunksServicePath[] = "/com/android/Trunks";
25 constexpr char kTrunksServiceName[] = "com.android.Trunks";
27 constexpr char kTrunksInterface[] = "org.chromium.Trunks";
28 constexpr char kTrunksServicePath[] = "/org/chromium/Trunks";
29 constexpr char kTrunksServiceName[] = "org.chromium.Trunks";
33 constexpr char kSendCommand[] = "SendCommand";
  /art/runtime/
experimental_flags.h 32 constexpr ExperimentalFlags() : value_(0x0000) {}
33 constexpr ExperimentalFlags(decltype(kNone) t) : value_(static_cast<uint32_t>(t)) {}
35 constexpr operator decltype(kNone)() const {
39 constexpr explicit operator bool() const {
43 constexpr ExperimentalFlags operator|(const decltype(kNone)& b) const {
46 constexpr ExperimentalFlags operator|(const ExperimentalFlags& b) const {
50 constexpr ExperimentalFlags operator&(const ExperimentalFlags& b) const {
53 constexpr ExperimentalFlags operator&(const decltype(kNone)& b) const {
57 constexpr bool operator==(const ExperimentalFlags& b) const {
  /bionic/libc/malloc_debug/
Config.h 34 constexpr uint64_t FRONT_GUARD = 0x1;
35 constexpr uint64_t REAR_GUARD = 0x2;
36 constexpr uint64_t BACKTRACE = 0x4;
37 constexpr uint64_t FILL_ON_ALLOC = 0x8;
38 constexpr uint64_t FILL_ON_FREE = 0x10;
39 constexpr uint64_t EXPAND_ALLOC = 0x20;
40 constexpr uint64_t FREE_TRACK = 0x40;
41 constexpr uint64_t TRACK_ALLOCS = 0x80;
42 constexpr uint64_t LEAK_TRACK = 0x100;
47 constexpr size_t MINIMUM_ALIGNMENT_BYTES = 16
    [all...]
  /external/clang/test/CXX/drs/
dr14xx.cpp 16 constexpr A() {}
18 constexpr A a = A();
23 constexpr B() = default;
25 constexpr B b = B();
31 constexpr C c = C();
33 constexpr void f() { C c; }
46 friend constexpr A::A() noexcept;
47 friend constexpr B::B() noexcept; // expected-error {{follows non-constexpr declaration}}
48 friend constexpr C::C() noexcept
    [all...]
  /external/clang/test/Modules/Inputs/
cxx-templates-c.h 10 static constexpr int f();
11 static constexpr int g();
13 template<typename T> constexpr int MergeTemplateDefinitions<T>::g() { return 2; }
  /external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/
const_T.pass.cpp 12 // constexpr optional(const T& v);
35 constexpr Y(int i) : i_(i) {}
37 friend constexpr bool operator==(const Y& x, const Y& y) {return x.i_ == y.i_;}
56 constexpr T t(5);
57 constexpr optional<T> opt(t);
64 constexpr test_constexpr_ctor(const T&) {}
70 constexpr T t(3);
71 constexpr optional<T> opt(t);
78 constexpr test_constexpr_ctor(const T&) {}
91 constexpr T t(3)
    [all...]
  /external/libcxx/test/std/experimental/optional/optional.object/optional.object.observe/
value_or_const.pass.cpp 12 // template <class U> constexpr T optional<T>::value_or(U&& v) const&;
26 constexpr Y(int i) : i_(i) {}
33 constexpr X(int i) : i_(i) {}
34 constexpr X(const Y& y) : i_(y.i_) {}
35 constexpr X(Y&& y) : i_(y.i_+1) {}
36 friend constexpr bool operator==(const X& x, const X& y)
46 constexpr optional<X> opt(2);
47 constexpr Y y(3);
51 constexpr optional<X> opt(2);
55 constexpr optional<X> opt
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.ctor/
const_T.pass.cpp 12 // constexpr optional(const T& v);
35 constexpr Y(int i) : i_(i) {}
37 friend constexpr bool operator==(const Y& x, const Y& y) {return x.i_ == y.i_;}
56 constexpr T t(5);
57 constexpr optional<T> opt(t);
64 constexpr test_constexpr_ctor(const T&) {}
70 constexpr T t(3);
71 constexpr optional<T> opt(t);
78 constexpr test_constexpr_ctor(const T&) {}
91 constexpr T t(3)
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.observe/
value_or_const.pass.cpp 12 // template <class U> constexpr T optional<T>::value_or(U&& v) const&;
26 constexpr Y(int i) : i_(i) {}
33 constexpr X(int i) : i_(i) {}
34 constexpr X(const Y& y) : i_(y.i_) {}
35 constexpr X(Y&& y) : i_(y.i_+1) {}
36 friend constexpr bool operator==(const X& x, const X& y)
46 constexpr optional<X> opt(2);
47 constexpr Y y(3);
51 constexpr optional<X> opt(2);
55 constexpr optional<X> opt
    [all...]
  /external/clang/test/CXX/expr/expr.const/
p5-0x.cpp 9 constexpr A(int i) : val(i) { }
10 constexpr operator int() const { return val; }
11 constexpr operator long() const { return 43; }
16 constexpr A a = 42;
23 constexpr OK() {}
24 constexpr operator int() const { return 8; }
25 } constexpr ok;
28 constexpr Explicit() {}
29 constexpr explicit operator int() const { return 4; } // expected-note 4{{here}}
30 } constexpr expl
    [all...]
  /external/libcxx/include/experimental/
optional 26 constexpr in_place_t in_place{};
30 constexpr nullopt_t nullopt(unspecified);
37 constexpr bool operator==(const optional<T>&, const optional<T>&);
39 constexpr bool operator!=(const optional<T>&, const optional<T>&);
41 constexpr bool operator<(const optional<T>&, const optional<T>&);
43 constexpr bool operator>(const optional<T>&, const optional<T>&);
45 constexpr bool operator<=(const optional<T>&, const optional<T>&);
47 constexpr bool operator>=(const optional<T>&, const optional<T>&);
50 template <class T> constexpr bool operator==(const optional<T>&, nullopt_t) noexcept;
51 template <class T> constexpr bool operator==(nullopt_t, const optional<T>&) noexcept
    [all...]
type_traits 25 template <class T> constexpr bool is_void_v
27 template <class T> constexpr bool is_null_pointer_v
29 template <class T> constexpr bool is_integral_v
31 template <class T> constexpr bool is_floating_point_v
33 template <class T> constexpr bool is_array_v
35 template <class T> constexpr bool is_pointer_v
37 template <class T> constexpr bool is_lvalue_reference_v
39 template <class T> constexpr bool is_rvalue_reference_v
41 template <class T> constexpr bool is_member_object_pointer_v
43 template <class T> constexpr bool is_member_function_pointer_
    [all...]
  /art/compiler/optimizing/
live_interval_test.cc 30 static constexpr size_t ranges[][2] = {{0, 42}};
36 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}};
47 static constexpr size_t ranges[][2] = {{0, 42}};
57 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}};
75 static constexpr size_t ranges[][2] = {{0, 42}};
85 static constexpr size_t ranges[][2] = {{4, 12}, {14, 16}};
103 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}};
105 static constexpr size_t ranges2[][2] = {{5, 6}};
112 static constexpr size_t ranges1[][2] = {{0, 4}, {8, 10}};
114 static constexpr size_t ranges2[][2] = {{5, 42}}
    [all...]
  /external/clang/test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/
p2.cpp 5 template<typename T> concept constexpr bool VCC = true; // expected-error {{variable concept cannot be declared 'constexpr'}}
13 template<typename T> concept constexpr bool FCC() { return true; } // expected-error {{function concept cannot be declared 'constexpr'}}
  /external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/
p7.cpp 6 constexpr S ss = { 1, "asdf" };
14 constexpr X a[] = { 1, 2, 3, 4, 5, 6 };
15 constexpr X b[2] = { { 1, 2, 3 }, { 4, 5, 6 } };
17 constexpr bool operator==(X a, X b) {
  /external/clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/
p2-0x.cpp 5 constexpr Value(int n) : n(n) {}
6 constexpr operator short() const { return n; }
11 constexpr operator E() const { return E0; }
14 constexpr short s = Alt();

Completed in 488 milliseconds

1 23 4 5 6 7 8 91011>>