Home
last modified time | relevance | path

Searched refs:make_optional (Results 1 – 20 of 20) sorted by relevance

/external/libchrome/libchrome_tools/patch/
D0001-Use-qualified-base-make_optional-in-optional_unittes.patch4 Subject: [PATCH] Use qualified base::make_optional in optional_unittest.cc
6 Unqualified usage of make_optional causes a compile error if:
8 - The parameter of make_optional is in std namespace, such as
10 As std::make_optional is pulled by ADL rule and conflicts to
11 base::make_optional in this situation.
13 This CL replaces them with qualified base::make_optional, and
34 - Optional<float> o = make_optional(32.f);
35 + // Use qualified base::make_optional here and elsewhere to avoid the name
36 + // confliction to std::make_optional.
38 + // std::string. The other qualified base::make_optional usages are just for
[all …]
/external/libcxx/test/std/utilities/optional/optional.specalg/
Dmake_optional.pass.cpp34 using std::make_optional; in main()
37 ASSERT_SAME_TYPE(decltype(make_optional(arr)), optional<int*>); in main()
40 constexpr auto opt = make_optional(2); in main()
45 optional<int> opt = make_optional(2); in main()
50 optional<std::string> opt = make_optional(s); in main()
55 optional<std::unique_ptr<int>> opt = make_optional(std::move(s)); in main()
Dmake_optional_explicit.pass.cpp24 using std::make_optional; in main()
27 constexpr auto opt = make_optional<int>('a'); in main()
32 auto opt = make_optional<std::string>(s); in main()
37 auto opt = make_optional<std::unique_ptr<int>>(std::move(s)); in main()
42 auto opt = make_optional<std::string>(4, 'X'); in main()
Dmake_optional_explicit_initializer_list.pass.cpp33 using std::make_optional; in main()
35 constexpr auto opt = make_optional<TestT>({42, 2, 3}); in main()
41 constexpr auto opt = make_optional<TestT>({42, 2, 3}, nullptr); in main()
46 auto opt = make_optional<std::string>({'1', '2', '3'}); in main()
50 auto opt = make_optional<std::string>({'a', 'b', 'c'}, std::allocator<char>{}); in main()
/external/tensorflow/tensorflow/core/lib/gtl/
Doptional.h25 using absl::make_optional;
/external/tensorflow/tensorflow/compiler/xla/service/
Dmaybe_owning_device_memory.cc38 return absl::make_optional<OwningDeviceMemory>(std::move(result)); in Release()
Dhlo_opcode.cc66 : absl::make_optional(arity); in HloOpcodeArity()
/external/libchrome/base/
Doptional_unittest.cc1907 Optional<float> o = base::make_optional(32.f); in TEST()
1912 o = base::make_optional(std::move(value)); in TEST()
1918 Optional<std::string> o = base::make_optional(std::string("foo")); in TEST()
1923 o = base::make_optional(std::move(value)); in TEST()
1929 Optional<TestObject> o = base::make_optional(TestObject(3, 0.1)); in TEST()
1934 o = base::make_optional(std::move(value)); in TEST()
1941 base::make_optional(std::move(value))->state()); in TEST()
1953 Optional<Test> o = base::make_optional<Test>(1, 2.0, true); in TEST()
1961 auto str1 = base::make_optional<std::string>({'1', '2', '3'}); in TEST()
1964 auto str2 = base::make_optional<std::string>({'a', 'b', 'c'}, in TEST()
[all …]
Doptional.h883 constexpr Optional<std::decay_t<T>> make_optional(T&& value) {
888 constexpr Optional<T> make_optional(Args&&... args) {
893 constexpr Optional<T> make_optional(std::initializer_list<U> il,
/external/perfetto/src/base/
Doptional_unittest.cc1921 Optional<float> o = base::make_optional(32.f); in TEST()
1926 o = base::make_optional(std::move(value)); in TEST()
1932 Optional<std::string> o = base::make_optional(std::string("foo")); in TEST()
1937 o = base::make_optional(std::move(value)); in TEST()
1943 Optional<TestObject> o = base::make_optional(TestObject(3, 0.1)); in TEST()
1948 o = base::make_optional(std::move(value)); in TEST()
1955 base::make_optional(std::move(value))->state()); in TEST()
1967 Optional<Test> o = base::make_optional<Test>(1, 2.0, true); in TEST()
1975 auto str1 = base::make_optional<std::string>({'1', '2', '3'}); in TEST()
1978 auto str2 = base::make_optional<std::string>({'a', 'b', 'c'}, in TEST()
[all …]
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer.cc305 return base::make_optional(std::move(buf)); in Create()
314 return base::make_optional(std::move(buf)); in Attach()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_resource.h111 representation_shape_ = absl::make_optional(shape); in SetRepresentationShape()
/external/tensorflow/tensorflow/core/grappler/
Dgraph_topology_view.cc186 : absl::make_optional(it->second); in GetNodeIndex()
/external/libcxx/include/
Doptional74 template <class T> constexpr optional<see below > make_optional(T&&);
76 constexpr optional<T> make_optional(Args&&... args);
78 constexpr optional<T> make_optional(initializer_list<U> il, Args&&... args);
1374 optional<decay_t<_Tp>> make_optional(_Tp&& __v)
1381 optional<_Tp> make_optional(_Args&&... __args)
1388 optional<_Tp> make_optional(initializer_list<_Up> __il, _Args&&... __args)
/external/perfetto/src/traced/probes/power/
Dandroid_power_data_source.cc85 return base::make_optional(value); in GetCounter()
/external/perfetto/include/perfetto/base/
Doptional.h862 constexpr Optional<typename std::decay<T>::type> make_optional(T&& value) {
867 constexpr Optional<T> make_optional(Args&&... args) {
872 constexpr Optional<T> make_optional(std::initializer_list<U> il,
/external/bcc/src/cc/vendor/
Doptional.hpp999 constexpr optional<typename decay<T>::type> make_optional(T&& v) in make_optional() function
1005 constexpr optional<X&> make_optional(reference_wrapper<X> v) in make_optional() function
/external/v8/src/base/
Doptional.h483 constexpr Optional<typename std::decay<T>::type> make_optional(T&& value) {
/external/pdfium/third_party/base/
Doptional.h484 constexpr Optional<typename std::decay<T>::type> make_optional(T&& value) {
/external/perfetto/src/traced/probes/ftrace/
Dcpu_reader.cc144 return base::make_optional(page_header); in ParsePageHeader()