ATLAS Offline Software
Loading...
Searching...
No Matches
Control
CxxUtils
CxxUtils
iterator_range.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef CXXUTILS_ITERATOR_RANGE_H
14
#define CXXUTILS_ITERATOR_RANGE_H
15
16
17
#include <utility>
18
19
20
namespace
CxxUtils
{
21
22
35
template
<
class
ITER>
36
class
iterator_range
:
public
std::pair<ITER, ITER>
37
{
38
public
:
39
using
std::pair<ITER, ITER>
::pair
;
40
ITER
begin
()
const
{
return
this->first; }
41
ITER
end
()
const
{
return
this->second; }
42
};
43
44
45
}
// namespace CxxUtils
46
47
48
#endif
// not CXXUTILS_ITERATOR_RANGE_H
CxxUtils::iterator_range
Simple range from a pair of iterators.
Definition
iterator_range.h:37
CxxUtils::iterator_range::begin
ITER begin() const
Definition
iterator_range.h:40
CxxUtils::iterator_range::end
ITER end() const
Definition
iterator_range.h:41
pair
STL class.
CxxUtils
Definition
aligned_vector.h:29
Generated on
for ATLAS Offline Software by
1.14.0