Blaze 3.9
Classes
InitializerIterator.h File Reference

Header file for the InitializerIterator class template. More...

#include <iterator>
#include <blaze/math/InitializerList.h>
#include <blaze/util/Types.h>

Go to the source code of this file.

Classes

class  blaze::InitializerIterator< Type >
 Implementation of an iterator for (extended) initializer lists. More...
 

Functions

InitializerIterator operators
template<typename Type >
bool blaze::operator== (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Equality comparison between two InitializerIterator objects. More...
 
template<typename Type >
bool blaze::operator!= (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Inequality comparison between two InitializerIterator objects. More...
 
template<typename Type >
bool blaze::operator< (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Less-than comparison between two InitializerIterator objects. More...
 
template<typename Type >
bool blaze::operator> (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Greater-than comparison between two InitializerIterator objects. More...
 
template<typename Type >
bool blaze::operator<= (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Less-than comparison between two InitializerIterator objects. More...
 
template<typename Type >
bool blaze::operator>= (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Greater-than comparison between two InitializerIterator objects. More...
 
template<typename Type >
const InitializerIterator< Type > blaze::operator+ (const InitializerIterator< Type > &it, ptrdiff_t inc) noexcept
 Addition between a InitializerIterator and an integral value. More...
 
template<typename Type >
const InitializerIterator< Type > blaze::operator+ (ptrdiff_t inc, const InitializerIterator< Type > &it) noexcept
 Addition between an integral value and a InitializerIterator. More...
 
template<typename Type >
const InitializerIterator< Type > blaze::operator- (const InitializerIterator< Type > &it, ptrdiff_t dec) noexcept
 Subtraction between a InitializerIterator and an integral value. More...
 
template<typename Type >
ptrdiff_t blaze::operator- (const InitializerIterator< Type > &lhs, const InitializerIterator< Type > &rhs) noexcept
 Calculating the number of elements between two iterators. More...
 

Detailed Description

Header file for the InitializerIterator class template.

Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved

This file is part of the Blaze library. You can redistribute it and/or modify it under

  The names of its contributors may not be used to endorse or promote products derived

from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ operator!=()

template<typename Type >
bool blaze::operator!= ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Inequality comparison between two InitializerIterator objects.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
true if the iterators don't refer to the same element, false if they do.

◆ operator+() [1/2]

template<typename Type >
const InitializerIterator< Type > blaze::operator+ ( const InitializerIterator< Type > &  it,
ptrdiff_t  inc 
)
inlinenoexcept

Addition between a InitializerIterator and an integral value.

Parameters
itThe iterator to be incremented.
incThe number of elements the iterator is incremented.
Returns
The incremented iterator.

◆ operator+() [2/2]

template<typename Type >
const InitializerIterator< Type > blaze::operator+ ( ptrdiff_t  inc,
const InitializerIterator< Type > &  it 
)
inlinenoexcept

Addition between an integral value and a InitializerIterator.

Parameters
incThe number of elements the iterator is incremented.
itThe iterator to be incremented.
Returns
The incremented iterator.

◆ operator-() [1/2]

template<typename Type >
const InitializerIterator< Type > blaze::operator- ( const InitializerIterator< Type > &  it,
ptrdiff_t  dec 
)
inlinenoexcept

Subtraction between a InitializerIterator and an integral value.

Parameters
itThe iterator to be decremented.
decThe number of elements the iterator is decremented.
Returns
The decremented iterator.

◆ operator-() [2/2]

template<typename Type >
ptrdiff_t blaze::operator- ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Calculating the number of elements between two iterators.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
The number of elements between the two iterators.

◆ operator<()

template<typename Type >
bool blaze::operator< ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Less-than comparison between two InitializerIterator objects.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
true if the left-hand side iterator is smaller, false if not.

◆ operator<=()

template<typename Type >
bool blaze::operator<= ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Less-than comparison between two InitializerIterator objects.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
true if the left-hand side iterator is smaller or equal, false if not.

◆ operator==()

template<typename Type >
bool blaze::operator== ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Equality comparison between two InitializerIterator objects.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
true if the iterators refer to the same element, false if not.

◆ operator>()

template<typename Type >
bool blaze::operator> ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Greater-than comparison between two InitializerIterator objects.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
true if the left-hand side iterator is greater, false if not.

◆ operator>=()

template<typename Type >
bool blaze::operator>= ( const InitializerIterator< Type > &  lhs,
const InitializerIterator< Type > &  rhs 
)
inlinenoexcept

Greater-than comparison between two InitializerIterator objects.

Parameters
lhsThe left-hand side iterator.
rhsThe right-hand side iterator.
Returns
true if the left-hand side iterator is greater or equal, false if not.