Home | History | Annotate | Download | only in AST

Lines Matching refs:Container

47 template <typename SpecificAttr, typename Container = AttrVec>
49 typedef typename Container::const_iterator Iterator;
114 template <typename SpecificAttr, typename Container>
115 inline specific_attr_iterator<SpecificAttr, Container>
116 specific_attr_begin(const Container& container) {
117 return specific_attr_iterator<SpecificAttr, Container>(container.begin());
119 template <typename SpecificAttr, typename Container>
120 inline specific_attr_iterator<SpecificAttr, Container>
121 specific_attr_end(const Container& container) {
122 return specific_attr_iterator<SpecificAttr, Container>(container.end());
125 template <typename SpecificAttr, typename Container>
126 inline bool hasSpecificAttr(const Container& container) {
127 return specific_attr_begin<SpecificAttr>(container) !=
128 specific_attr_end<SpecificAttr>(container);
130 template <typename SpecificAttr, typename Container>
131 inline SpecificAttr *getSpecificAttr(const Container& container) {
132 specific_attr_iterator<SpecificAttr, Container> i =
133 specific_attr_begin<SpecificAttr>(container);
134 if (i != specific_attr_end<SpecificAttr>(container))