Flow
Documentation for the Flow C++ Library
Loading...
Searching...
No Matches
flow_vector.h File Reference
#include "flow_counted_value_view_iterator.h"
#include "flow_memory_algorithm.h"
#include "flow_polymorphic_allocator.h"
#include <cassert>
#include <concepts>
#include <initializer_list>
#include <memory>
#include <utility>

Go to the source code of this file.

Classes

struct  flow::VectorGrowthStrategy
struct  flow::VectorGrowthStrategy::GoldenExpand
struct  flow::VectorGrowthStrategy::DoubleExpand
struct  flow::VectorGrowthStrategy::FibonacciExpand
class  flow::Vector< T, Allocator, Strategy >

Namespaces

namespace  flow

Concepts

concept  flow::GrowthStrategy

Functions

template<typename T>
bool operator== (const flow::Vector< T > &lhs, const flow::Vector< T > &rhs) noexcept
template<typename T>
bool operator!= (const flow::Vector< T > &lhs, const flow::Vector< T > &rhs) noexcept

Function Documentation

◆ operator!=()

template<typename T>
bool operator!= ( const flow::Vector< T > & lhs,
const flow::Vector< T > & rhs )
noexcept

Definition at line 517 of file flow_vector.h.

517 {
518 return !(lhs == rhs);
519}

◆ operator==()

template<typename T>
bool operator== ( const flow::Vector< T > & lhs,
const flow::Vector< T > & rhs )
noexcept

Definition at line 512 of file flow_vector.h.

512 {
513 return std::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
514}
iterator begin() noexcept
iterator end() noexcept