dmd ~master (2023-11-01T14:17:50Z)
Dub
Repo
array
core
stdcpp
array
D language counterpart to C++ std::array.
C++ reference:
extern (
C
++)
struct
array (
T
size_t
N
) {
alias
size_type
=
size_t
;
alias
difference_type
=
ptrdiff_t
;
alias
value_type
=
T
;
alias
pointer
=
T
*
;
alias
const_pointer
=
const
(
T
)*
;
this
(T[N] args);
void
fill
(const(T) value);
size_type
size
();
alias
length
=
size
;
alias
opDollar
=
length
;
size_type
max_size
();
bool
empty
();
inout
(
T
)
front
();
inout
(
T
)
back
();
version
(
CppRuntime_Windows
)
inout
(
T
)*
data
();
version
(
CppRuntime_Windows
)
inout
(
T
)[
N
]
as_array
();
version
(
CppRuntime_Windows
)
inout
(
T
)
at
(size_type i);
version
(!
CppRuntime_Windows
)
version
(
CppRuntime_Gcc
)
inout
(
T
)*
data
();
version
(!
CppRuntime_Windows
)
version
(
CppRuntime_Gcc
)
inout
(
T
)[
N
]
as_array
();
version
(!
CppRuntime_Windows
)
version
(
CppRuntime_Gcc
)
inout
(
T
)
at
(size_type i);
version
(!
CppRuntime_Windows
)
version
(!
CppRuntime_Gcc
)
version
(
CppRuntime_Clang
)
inout
(
T
)*
data
();
version
(!
CppRuntime_Windows
)
version
(!
CppRuntime_Gcc
)
version
(
CppRuntime_Clang
)
inout
(
T
)[
N
]
as_array
();
version
(!
CppRuntime_Windows
)
version
(!
CppRuntime_Gcc
)
version
(
CppRuntime_Clang
)
inout
(
T
)
at
(size_type i);
}
Constructors
this
this
(T[N] args)
Variadic constructor
Alias This
as_array
Members
Aliases
const_pointer
alias
const_pointer
=
const
(
T
)*
difference_type
alias
difference_type
=
ptrdiff_t
length
alias
length
=
size
opDollar
alias
opDollar
=
length
pointer
alias
pointer
=
T
*
size_type
alias
size_type
=
size_t
value_type
alias
value_type
=
T
Functions
as_array
inout
(
T
)[
N
]
as_array
()
as_array
inout
(
T
)[
N
]
as_array
()
as_array
inout
(
T
)[
N
]
as_array
()
at
inout
(
T
)
at
(size_type i)
at
inout
(
T
)
at
(size_type i)
at
inout
(
T
)
at
(size_type i)
back
inout
(
T
)
back
()
data
inout
(
T
)*
data
()
data
inout
(
T
)*
data
()
data
inout
(
T
)*
data
()
empty
bool
empty
()
fill
void
fill
(const(T) value)
front
inout
(
T
)
front
()
max_size
size_type
max_size
()
size
size_type
size
()
Meta
Source
See Implementation
core
stdcpp
array
structs
array
D language counterpart to C++ std::array.
C++ reference: