[flat.map.capacity]

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

## 23.6 Container adaptors [[container.adaptors]](container.adaptors#flat.map.capacity)

### 23.6.8 Class template flat_map [[flat.map]](flat.map#capacity)

#### 23.6.8.5 Capacity [flat.map.capacity]

[ð](#lib:size,flat_map)

`constexpr size_type size() const noexcept;
`

[1](#1)

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

*Returns*: *c*.keys.size()[.](#1.sentence-1)

[ð](#lib:max_size,flat_map)

`constexpr size_type max_size() const noexcept;
`

[2](#2)

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

*Returns*: min<size_type>(*c*.keys.max_size(), *c*.values.max_size())[.](#2.sentence-1)
