Py2Cpp 1.6.3; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
range.hpp File Reference

Python-like range implementation for C++. More...

#include <cstddef>
#include <iterator>
Include dependency graph for range.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  py::RangeIterator< T >
 Iterator for range-based sequences. More...
 
struct  py::Range< T >
 Python-like range implementation. More...
 

Namespaces

namespace  py
 Python-like utilities and data structures for C++.
 

Macros

#define CONSTEXPR14   inline
 

Functions

template<typename T >
CONSTEXPR14 auto py::range (T start, T stop) -> Range< T >
 range(T start, T stop)
 
template<typename T >
CONSTEXPR14 auto py::range (T stop) -> Range< T >
 range(T stop)
 

Detailed Description

Python-like range implementation for C++.

Provides RangeIterator and Range templates that mimic Python's range() function for generating sequential integer sequences.

Macro Definition Documentation

◆ CONSTEXPR14

#define CONSTEXPR14   inline