Ignore:
Timestamp:
Jan 29, 2019, 4:09:59 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
no_list
Children:
bee0694
Parents:
ede87c6
Message:

Starting to remove std::list to see if it affects performance, started with List of attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/ZeroOneType.cc

    rede87c6 r70a1c3ae  
    2121class Attribute;
    2222
    23 ZeroType::ZeroType() : Type( Type::Qualifiers(), std::list< Attribute * >() ) {}
     23ZeroType::ZeroType() : Type( Type::Qualifiers(), std::vector< Attribute * >() ) {}
    2424
    25 ZeroType::ZeroType( Type::Qualifiers tq, const std::list< Attribute * > & attributes ) : Type( tq, attributes ) {}
     25ZeroType::ZeroType( Type::Qualifiers tq, const std::vector< Attribute * > & attributes ) : Type( tq, attributes ) {}
    2626
    2727void ZeroType::print( std::ostream &os, Indenter ) const {
     
    2929}
    3030
    31 OneType::OneType() : Type( Type::Qualifiers(), std::list< Attribute * >() ) {}
     31OneType::OneType() : Type( Type::Qualifiers(), std::vector< Attribute * >() ) {}
    3232
    33 OneType::OneType( Type::Qualifiers tq, const std::list< Attribute * > & attributes ) : Type( tq, attributes ) {}
     33OneType::OneType( Type::Qualifiers tq, const std::vector< Attribute * > & attributes ) : Type( tq, attributes ) {}
    3434
    3535void OneType::print( std::ostream &os, Indenter ) const {
Note: See TracChangeset for help on using the changeset viewer.