The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
array
core
stdcpp
array
D language counterpart to C++ std::array.
C++ reference:
version(Supported)
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
();
}
Constructors
this
this
(T[N] args)
Variadic constructor
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
back
inout
(
T
)
back
()
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: