[range.prim.cdata]

# 25 Ranges library [[ranges]](./#ranges)

## 25.3 Range access [[range.access]](range.access#range.prim.cdata)

### 25.3.15 ranges​::​cdata [range.prim.cdata]

template<class T>constexpr auto *as-const-pointer*(const T* p) noexcept { return p; } // *exposition only*

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/ranges.tex#L1260)

The name ranges​::​cdata denotes a customization point
object ([[customization.point.object]](customization.point.object "16.3.3.3.5 Customization Point Object types"))[.](#1.sentence-1)

Given a subexpression E with type T,
let t be an lvalue that denotes the reified object for E[.](#1.sentence-2)

Then:

- [(1.1)](#1.1)

  If E is an rvalue andenable_borrowed_range<remove_cv_t<T>> is false,ranges​::​cdata(E) is ill-formed[.](#1.1.sentence-1)

- [(1.2)](#1.2)

  Otherwise,ranges​::​cdata(E) is expression-equivalent to*as-const-pointer*(ranges​::​data(*possibly-const-range*(t)))[.](#1.2.sentence-1)

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/ranges.tex#L1277)

[*Note [1](#note-1)*:

Whenever ranges​::​cdata(E) is a valid expression, it
has pointer to constant object type[.](#2.sentence-1)

â *end note*]
