Skip to content

Commit fc7f8f2

Browse files
committed
reserving size
1 parent 2907e07 commit fc7f8f2

File tree

1 file changed

+1
-0
lines changed
  • src/ENDFtk/section/1/458/PolynomialComponents/src

1 file changed

+1
-0
lines changed

src/ENDFtk/section/1/458/PolynomialComponents/src/print.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ template< typename OutputIterator >
1212
void print( OutputIterator& it, int MAT, int MF, int MT ) const {
1313

1414
std::vector< double > values;
15+
values.reserve( 18 * ( this->order() + 1 ) );
1516
for ( std::size_t i = 0; i < this->order() + 1; ++i ) {
1617

1718
for ( std::size_t j = 0; j < 9; ++j ) {

0 commit comments

Comments
 (0)