@@ -51,31 +51,31 @@ module stdlib_string_type
51
51
52
52
! > Constructor for new string instances
53
53
interface string_type
54
- pure elemental module function new_string(string) result(new)
54
+ elemental module function new_string(string) result(new)
55
55
character (len=* ), intent (in ), optional :: string
56
56
type (string_type) :: new
57
57
end function new_string
58
- pure elemental module function new_string_from_integer_int8(val) result(new)
58
+ elemental module function new_string_from_integer_int8(val) result(new)
59
59
integer (int8), intent (in ) :: val
60
60
type (string_type) :: new
61
61
end function new_string_from_integer_int8
62
- pure elemental module function new_string_from_integer_int16(val) result(new)
62
+ elemental module function new_string_from_integer_int16(val) result(new)
63
63
integer (int16), intent (in ) :: val
64
64
type (string_type) :: new
65
65
end function new_string_from_integer_int16
66
- pure elemental module function new_string_from_integer_int32(val) result(new)
66
+ elemental module function new_string_from_integer_int32(val) result(new)
67
67
integer (int32), intent (in ) :: val
68
68
type (string_type) :: new
69
69
end function new_string_from_integer_int32
70
- pure elemental module function new_string_from_integer_int64(val) result(new)
70
+ elemental module function new_string_from_integer_int64(val) result(new)
71
71
integer (int64), intent (in ) :: val
72
72
type (string_type) :: new
73
73
end function new_string_from_integer_int64
74
- pure elemental module function new_string_from_logical_lk(val) result(new)
74
+ elemental module function new_string_from_logical_lk(val) result(new)
75
75
logical (lk), intent (in ) :: val
76
76
type (string_type) :: new
77
77
end function new_string_from_logical_lk
78
- pure elemental module function new_string_from_logical_c_bool(val) result(new)
78
+ elemental module function new_string_from_logical_c_bool(val) result(new)
79
79
logical (c_bool), intent (in ) :: val
80
80
type (string_type) :: new
81
81
end function new_string_from_logical_c_bool
@@ -689,7 +689,7 @@ end function verify_char_string
689
689
690
690
! > Moves the allocated character scalar from 'from' to 'to'
691
691
! > No output
692
- subroutine move_string_string (from , to )
692
+ elemental subroutine move_string_string (from , to )
693
693
type (string_type), intent (inout ) :: from
694
694
type (string_type), intent (out ) :: to
695
695
@@ -699,7 +699,7 @@ end subroutine move_string_string
699
699
700
700
! > Moves the allocated character scalar from 'from' to 'to'
701
701
! > No output
702
- subroutine move_string_char (from , to )
702
+ pure subroutine move_string_char (from , to )
703
703
type (string_type), intent (inout ) :: from
704
704
character (len= :), intent (out ), allocatable :: to
705
705
@@ -709,7 +709,7 @@ end subroutine move_string_char
709
709
710
710
! > Moves the allocated character scalar from 'from' to 'to'
711
711
! > No output
712
- subroutine move_char_string (from , to )
712
+ pure subroutine move_char_string (from , to )
713
713
character (len= :), intent (inout ), allocatable :: from
714
714
type (string_type), intent (out ) :: to
715
715
@@ -719,7 +719,7 @@ end subroutine move_char_string
719
719
720
720
! > Moves the allocated character scalar from 'from' to 'to'
721
721
! > No output
722
- subroutine move_char_char (from , to )
722
+ pure subroutine move_char_char (from , to )
723
723
character (len= :), intent (inout ), allocatable :: from
724
724
character (len= :), intent (out ), allocatable :: to
725
725
0 commit comments