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

Adds an integer element to the end of the list. More...

Private Member Functions

subroutine list_add_int (specificlist, int_data)
 Adds an element to the end of the list. More...
 

Detailed Description

Adds an integer element to the end of the list.

This has a time complexity of O(1)

Parameters
collectionThe specific list involved
dataInteger data to add

Definition at line 213 of file collections.F90.

Member Function/Subroutine Documentation

◆ list_add_int()

subroutine collections_mod::c_add_integer::list_add_int ( type(list_type), intent(inout)  specificlist,
integer, intent(in)  int_data 
)
private

Adds an element to the end of the list.

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

Parameters
specificlistThe specific list involved
dataInteger data to add

Definition at line 2902 of file collections.F90.

2903  type(list_type), intent(inout) :: specificlist
2904  integer, intent(in) :: int_data
2905 
2906  class(*), pointer :: generic
2907 
2908  generic=>conv_to_generic(int_data, .true.)
2909  call list_add_generic(specificlist, generic, .true.)

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