Skip to content

Commit 35ed826

Browse files
committed
Update stdlib_hashmaps.md
Update to include native support for int32 key types.
1 parent 7cf7352 commit 35ed826

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

doc/specs/stdlib_hashmaps.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,13 @@ Procedures to manipulate `key_type` data:
157157
`key_in`, to contents of the key, `key_out`.
158158

159159
* `get( key, value )` - extracts the contents of `key` into `value`,
160-
an `int8` array or character string.
160+
an `int8` array, 'int32' array, or character string.
161161

162162
* `free_key( key )` - frees the memory in `key`.
163163

164-
* `set( key, value )` - sets the content of `key` to `value`.
164+
* `set( key, value )` - sets the content of `key` to `value`.
165+
Supported key types are `int8` array, `int32` array, and character
166+
string.
165167

166168
Procedures to manipulate `other_type` data:
167169

@@ -474,9 +476,9 @@ is an `intent(in)` argument.
474476

475477
`value`: if the the first argument is of `key_type` `value` shall be
476478
an allocatable default character string variable, or
477-
an allocatable vector variable of type integer and kind `int8`,
478-
otherwise the first argument is of `other_type` and `value` shall be
479-
an allocatable of `class(*)`. It is an `intent(out)` argument.
479+
an allocatable vector variable of type integer and kind `int8` or
480+
`int32`, otherwise the first argument is of `other_type` and `value`
481+
shall be an allocatable of `class(*)`. It is an `intent(out)` argument.
480482

481483
##### Example
482484

@@ -751,13 +753,14 @@ is an `intent(out)` argument.
751753

752754
`value`: if the first argument is `key` `value` shall be a default
753755
character string scalar expression, or a vector expression of type integer
754-
and kind `int8`, while for a first argument of type `other` `value`
755-
shall be of type `class(*)`. It is an `intent(in)` argument.
756+
and kind `int8` or `int32`, while for a first argument of type
757+
`other` `value` shall be of type `class(*)`. It is an `intent(in)`
758+
argument.
756759

757760
##### Note
758761

759-
Values of types other than a scalar default character or an
760-
`int8` vector can be used as the basis of a `key` by transferring the
762+
Values of types other than a scalar default character or and
763+
`int8` or `int32` vector can be used as the basis of a `key` by transferring the
761764
value to an `int8` vector.
762765

763766
##### Example

0 commit comments

Comments
 (0)