[span.obs]

# 23 Containers library [[containers]](./#containers)

## 23.7 Views [[views]](views#span.obs)

### 23.7.2 Contiguous access [[views.contiguous]](views.contiguous#span.obs)

#### 23.7.2.2 Class template span [[views.span]](views.span#span.obs)

#### 23.7.2.2.5 Observers [span.obs]

[ð](#lib:span,size)

`constexpr size_type size() const noexcept;
`

[1](#1)

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

*Effects*: Equivalent to: return *size_*;

[ð](#lib:span,size_bytes)

`constexpr size_type size_bytes() const noexcept;
`

[2](#2)

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

*Effects*: Equivalent to: return size() * sizeof(element_type);

[ð](#lib:span,empty)

`constexpr bool empty() const noexcept;
`

[3](#3)

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

*Effects*: Equivalent to: return size() == 0;
