Qt 4.8
Classes | Functions
qvarlengtharray.h File Reference
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qglobal.h>
#include <QtCore/qalgorithms.h>
#include <new>
#include <string.h>

Go to the source code of this file.

Classes

class  QPodList< T, Prealloc >
 
class  QVarLengthArray< T, Prealloc >
 

Functions

template<typename T , int Prealloc1, int Prealloc2>
bool operator!= (const QVarLengthArray< T, Prealloc1 > &l, const QVarLengthArray< T, Prealloc2 > &r)
 
template<typename T , int Prealloc1, int Prealloc2>
bool operator== (const QVarLengthArray< T, Prealloc1 > &l, const QVarLengthArray< T, Prealloc2 > &r)
 

Function Documentation

◆ operator!=()

template<typename T , int Prealloc1, int Prealloc2>
bool operator!= ( const QVarLengthArray< T, Prealloc1 > &  l,
const QVarLengthArray< T, Prealloc2 > &  r 
)

Definition at line 395 of file qvarlengtharray.h.

396 {
397  return !(l == r);
398 }

◆ operator==()

template<typename T , int Prealloc1, int Prealloc2>
bool operator== ( const QVarLengthArray< T, Prealloc1 > &  l,
const QVarLengthArray< T, Prealloc2 > &  r 
)

Definition at line 383 of file qvarlengtharray.h.

384 {
385  if (l.size() != r.size())
386  return false;
387  for (int i = 0; i < l.size(); i++) {
388  if (l.at(i) != r.at(i))
389  return false;
390  }
391  return true;
392 }
const T & at(int idx) const
int size() const