CGAL 4.7 - STL Extensions for CGAL: Index Concept Reference

\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.7 - STL Extensions for CGAL

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Index Concept Reference
Concepts

## Definition

The concept `Index` is a refinement of `Descriptor` which must be convertible from and to `std::size_t`, and must be incrementable and decrementable.

Refines:
  `Descriptor`

Has Models:

  int

  size_t

Notation

`I`
  Object of type Index.
`n`
  Object of type `std::size_t`.

Valid Expressions

Expression | Returns | Description
--- | --- | ---
`Index I(n)` | - | Creates an index `I` from a `std::size_t`.
`(std::size_t)I` | `std::size_t` | Converts `I` into a `std::size_t`.
`++I` | `Index&` | Pre-increments `I`.
`I++` | `Index` | Post-increments `I`.
`--I` | `Index&` | Pre-decrements `I`.
`I--` | `Index` | Post-decrements `I`.