HomeSort by relevance Sort by last modified time
    Searched defs:Optional (Results 1 - 25 of 252) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/chromium-trace/catapult/common/py_utils/py_utils/
contextlib_ext.py 23 def Optional(manager, condition):
  /system/chre/util/include/chre/util/
optional.h 25 * This container keeps track of an optional object. The container is similar to
26 * std::optional introduced in C++17.
29 class Optional {
31 // Per the standard, a program that instantiates template optional for a
34 "Optional references are not allowed");
37 * Default constructs the optional object with no initial value.
39 Optional() = default;
42 * Constructs an optional instance with an initial value.
46 Optional(const ObjectType& object);
49 * Constructs an optional instance with an initial value by moving it
    [all...]
optional_impl.h 23 #include "chre/util/optional.h"
28 Optional<ObjectType>::Optional(const ObjectType& object) {
34 Optional<ObjectType>::Optional(ObjectType&& object) {
40 bool Optional<ObjectType>::has_value() const {
45 void Optional<ObjectType>::reset() {
53 ObjectType& Optional<ObjectType>::value() {
58 const ObjectType& Optional<ObjectType>::value() const {
63 Optional<ObjectType>& Optional<ObjectType>::operator=(ObjectType&& other)
    [all...]
  /external/testng/src/main/java/org/testng/annotations/
Optional.java 12 * Specifies that the current parameter is optional. TestNG will pass
17 public @interface Optional {
  /external/guava/guava-tests/test/com/google/common/net/
MediaTypeTest.java 39 import com.google.common.base.Optional;
78 Optional<Charset> charset = ((MediaType) field.get(null)).charset();
80 assertEquals(Optional.of(UTF_8), charset);
82 assertEquals(Optional.absent(), charset);
336 assertEquals(Optional.absent(), MediaType.parse("text/plain").charset());
337 assertEquals(Optional.of(UTF_8),
342 assertEquals(Optional.of(UTF_16),
  /system/nvram/messages/include/nvram/messages/
optional.h 24 template <typename ValueType> class Optional {
26 Optional() = default;
27 explicit Optional(ValueType value) : value_(value), valid_(true) {}
  /external/llvm/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
29 class Optional {
35 Optional(NoneType) : hasVal(false) {}
36 explicit Optional() : hasVal(false) {}
37 Optional(const T &y) : hasVal(true) {
40 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
29 class Optional {
35 Optional(NoneType) : hasVal(false) {}
36 explicit Optional() : hasVal(false) {}
37 Optional(const T &y) : hasVal(true) {
40 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
29 class Optional {
35 Optional(NoneType) : hasVal(false) {}
36 explicit Optional() : hasVal(false) {}
37 Optional(const T &y) : hasVal(true) {
40 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
29 class Optional {
35 Optional(NoneType) : hasVal(false) {}
36 explicit Optional() : hasVal(false) {}
37 Optional(const T &y) : hasVal(true) {
40 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4479392/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4630689/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4639204/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4691093/include/llvm/ADT/
Optional.h 1 //===- Optional.h - Simple variant for passing optional values --*- C++ -*-===//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
31 class Optional {
38 Optional(NoneType) {}
39 explicit Optional() {}
41 Optional(const T &y) : hasVal(true) {
45 Optional(const Optional &O) : hasVal(O.hasVal)
    [all...]
  /external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/metamodel/
BaseNodeMetaModelTest.java 6 import java.util.Optional;
13 super(Optional.empty(), StringLiteralExpr.class, "stri", "com.japa", true, true);
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
Optional.h 1 //===-- Optional.h - Simple variant for passing optional values ---*- C++ -*-=//
10 // This file provides Optional, a template class modeled in the spirit of
12 // a value can be optional.
24 class Optional {
28 explicit Optional() : x(), hasVal(false) {}
29 Optional(const T &y) : x(y), hasVal(true) {}
31 static inline Optional create(const T* y) {
32 return y ? Optional(*y) : Optional();
    [all...]
  /external/webrtc/webrtc/base/
optional.h 21 // Simple std::experimental::optional-wannabe. It either contains a T or not.
27 // A moved-from Optional<T> may only be destroyed, and assigned to if T allows
31 // Examples of good places to use Optional:
36 // Optional<int> cell_number; // Empty if not currently incarcerated.
41 // return an Optional<size_t> (the index where it found the element, or
43 // return Optional<double> (the parsed number, or nothing if parsing failed).
45 // Examples of bad places to use Optional:
49 // Optional<size_t> so that it can return nothing in case the caller passed
55 // Optional<double> when parsing a single number as in the example above
60 // std::optional (and we're allowed to use it)
    [all...]

Completed in 975 milliseconds

1 2 3 4 5 6 7 8 91011