PyTorch
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
ArrayRef.h File Reference
#include <c10/util/C++17.h>
#include <c10/util/Deprecated.h>
#include <c10/util/Exception.h>
#include <c10/util/SmallVector.h>
#include <array>
#include <iterator>
#include <vector>

Go to the source code of this file.

Classes

class  c10::ArrayRef< T >
 ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. More...
 

Namespaces

namespace  c10
 

Functions

template<typename T >
std::ostream & c10::operator<< (std::ostream &out, ArrayRef< T > list)
 

ArrayRef Convenience constructors

using c10::IntArrayRef = ArrayRef< int64_t >
 
 c10::IntList
 
template<typename T >
ArrayRef< T > c10::makeArrayRef (const T &OneElt)
 Construct an ArrayRef from a single element. More...
 
template<typename T >
ArrayRef< T > c10::makeArrayRef (const T *data, size_t length)
 Construct an ArrayRef from a pointer and length. More...
 
template<typename T >
ArrayRef< T > c10::makeArrayRef (const T *begin, const T *end)
 Construct an ArrayRef from a range. More...
 
template<typename T >
ArrayRef< T > c10::makeArrayRef (const SmallVectorImpl< T > &Vec)
 Construct an ArrayRef from a SmallVector. More...
 
template<typename T , unsigned N>
ArrayRef< T > c10::makeArrayRef (const SmallVector< T, N > &Vec)
 Construct an ArrayRef from a SmallVector. More...
 
template<typename T >
ArrayRef< T > c10::makeArrayRef (const std::vector< T > &Vec)
 Construct an ArrayRef from a std::vector. More...
 
template<typename T , std::size_t N>
ArrayRef< T > c10::makeArrayRef (const std::array< T, N > &Arr)
 Construct an ArrayRef from a std::array. More...
 
template<typename T >
ArrayRef< T > c10::makeArrayRef (const ArrayRef< T > &Vec)
 Construct an ArrayRef from an ArrayRef (no-op) (const) More...
 
template<typename T >
ArrayRef< T > & c10::makeArrayRef (ArrayRef< T > &Vec)
 Construct an ArrayRef from an ArrayRef (no-op) More...
 
template<typename T , size_t N>
ArrayRef< T > c10::makeArrayRef (const T(&Arr)[N])
 Construct an ArrayRef from a C array. More...
 
template<typename T >
bool c10::operator== (c10::ArrayRef< T > a1, c10::ArrayRef< T > a2)
 
template<typename T >
bool c10::operator!= (c10::ArrayRef< T > a1, c10::ArrayRef< T > a2)
 
template<typename T >
bool c10::operator== (const std::vector< T > &a1, c10::ArrayRef< T > a2)
 
template<typename T >
bool c10::operator!= (const std::vector< T > &a1, c10::ArrayRef< T > a2)
 
template<typename T >
bool c10::operator== (c10::ArrayRef< T > a1, const std::vector< T > &a2)
 
template<typename T >
bool c10::operator!= (c10::ArrayRef< T > a1, const std::vector< T > &a2)