I am currently creating a class with a constexpr
constructor and I wonder if I can use an std::array
to store the data of this class. Does the standard explicitly specify that an std::array
has a constexpr
constructor and that its contents can be accessed at compile-time ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…