CGAL 6.1 - STL Extensions for CGAL

Loading...
Searching...
No Matches
Index Concept Reference
Reference Manual » 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`.