ONE - On-device Neural Engine
Loading...
Searching...
No Matches
adt Namespace Reference

Data Structures

class  small_vector
 vector with cheap memory allocation More...
 

Functions

template<typename T , size_t LCapacity, size_t RCapacity>
bool operator== (const small_vector< T, LCapacity > &lhs, const small_vector< T, RCapacity > &rhs)
 

Function Documentation

◆ operator==()

template<typename T , size_t LCapacity, size_t RCapacity>
bool adt::operator== ( const small_vector< T, LCapacity > &  lhs,
const small_vector< T, RCapacity > &  rhs 
)

Definition at line 137 of file SmallVector.h.

138{
139 if (lhs.size() != rhs.size())
140 {
141 return false;
142 }
143
144 bool equal = true;
145 size_t end = lhs.size();
146 for (size_t i = 0; i < end; ++i)
147 {
148 equal &= (lhs[i] == rhs[i]);
149 }
150
151 return equal;
152}
size_t size() const noexcept
Definition SmallVector.h:67

References adt::small_vector< T, Capacity >::size().