object::key_type

Table of Contents

- Overview
- Quick Look
- Document Model
  - `value`
  - `string`
  - `array`
  - `object`
  - Numbers
  - Initializer Lists
  - Accessing Deeply Nested Elements
- Allocators
  - Background
  - `storage_ptr`
  - Uses-allocator Construction
- Input/Output
  - Parsing
  - Serializing
- Value Conversion
  - Custom Conversions
  - Non-Throwing Conversions
  - Allocation Control
  - Contextual Conversions
  - Avoiding Physical Dependency
  - Direct Conversion
  - Conversion Customization Guidelines
- Examples
  - Pretty
  - Validate
  - Allocator-Aware Conversion
  - CBOR
- Frequently Asked Questions
- Benchmarks
- Comparison to Other Libraries
- Reference
- Release Notes

## `object::key_type`

The type of keys.

### Synopsis

    using key_type = string_view;

### Description

The function `string::max_size` returns the maximum allowed size of strings used as keys.

Edit this page