Lines Matching defs:const
50 Array(const std::vector<T>& other) : vec_(other), is_null_(false) {}
79 static Array From(const U& other) {
85 U To() const {
90 bool is_null() const { return is_null_; }
93 bool empty() const { return vec_.empty() && !is_null_; }
97 ConstRefType front() const { return vec_.front(); }
101 const_iterator begin() const { return vec_.begin(); }
103 const_iterator end() const { return vec_.end(); }
106 size_t size() const { return vec_.size(); }
110 ConstRefType at(size_t offset) const { return vec_.at(offset); }
111 ConstRefType operator[](size_t offset) const { return at(offset); }
117 void push_back(const T& value) {
136 // Returns a const reference to the |std::vector| managed by this class. If
138 const std::vector<T>& storage() const { return vec_; }
146 operator const std::vector<T>&() const { return vec_; }
169 Array Clone() const {
179 bool Equals(const Array& other) const {
189 operator Testable() const { return is_null_ ? 0 : &Array::vec_; }
195 bool operator==(const Array<U>& other) const = delete;
197 bool operator!=(const Array<U>& other) const = delete;
215 static Array<T> Convert(const std::vector<E>& input) {
228 static std::vector<E> Convert(const Array<T>& input) {
244 static Array<T> Convert(const std::set<E>& input) {
257 static std::set<E> Convert(const Array<T>& input) {
269 inline bool operator<(const Array<T>& a, const Array<T>& b) {