MONC
Private Member Functions | List of all members
collections_mod::c_insert_integer Interface Reference

Inserts an integer element into the list or places at the end if the index > list size. More...

Private Member Functions

subroutine list_insert_int (specificlist, int_data, i)
 Inserts an element into the list or places at the end if the index > list size. More...
 

Detailed Description

Inserts an integer element into the list or places at the end if the index > list size.

This has a time complexity of O(n)

Parameters
collectionThe specific list involved
dataInteger data to insert
indexThe list index to insert to

Definition at line 261 of file collections.F90.

Member Function/Subroutine Documentation

◆ list_insert_int()

subroutine collections_mod::c_insert_integer::list_insert_int ( type(list_type), intent(inout)  specificlist,
integer, intent(in)  int_data,
integer, intent(in)  i 
)
private

Inserts an element into the list or places at the end if the index > list size.

Do not call directly from external module, this is called via the appropriate interface

Parameters
specificlistThe specific list involved
dataInteger data to insert
iThe list index to insert to

Definition at line 2782 of file collections.F90.

2783  type(list_type), intent(inout) :: specificlist
2784  integer, intent(in) :: i, int_data
2785 
2786  class(*), pointer :: generic
2787 
2788  generic=>conv_to_generic(int_data, .true.)
2789  call list_insert_generic(specificlist, generic, i, .true.)

The documentation for this interface was generated from the following file: