* Wrapper template for making GiNaC classes out of STL containers. */
/*
- * GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
setflag(get_default_flags());
}
- explicit container(const ex & p1) deprecated;
- container(const ex & p1, const ex & p2) deprecated;
- container(const ex & p1, const ex & p2, const ex & p3) deprecated;
- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4) deprecated;
- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5) deprecated;
- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6) deprecated;
- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7) deprecated;
- container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8) deprecated;
+ explicit container(const ex & p1) attribute_deprecated;
+ container(const ex & p1, const ex & p2) attribute_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3) attribute_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4) attribute_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5) attribute_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6) attribute_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7) attribute_deprecated;
+ container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9) deprecated;
+ const ex & p9) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10) deprecated;
+ const ex & p9, const ex & p10) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10, const ex & p11) deprecated;
+ const ex & p9, const ex & p10, const ex & p11) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10, const ex & p11, const ex & p12) deprecated;
+ const ex & p9, const ex & p10, const ex & p11, const ex & p12) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13) deprecated;
+ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14) deprecated;
+ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15) deprecated;
+ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15) attribute_deprecated;
container(const ex & p1, const ex & p2, const ex & p3, const ex & p4, const ex & p5, const ex & p6, const ex & p7, const ex & p8,
- const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15, const ex & p16) deprecated;
+ const ex & p9, const ex & p10, const ex & p11, const ex & p12, const ex & p13, const ex & p14, const ex & p15, const ex & p16) attribute_deprecated;
// First step of initialization of container with a comma-separated
// sequence of expressions. Subsequent steps are handled by
// container_init<>::operator,().
- container_init<ex, STLT> operator=(const ex & x) deprecated;
+ container_init<ex, STLT> operator=(const ex & x) attribute_deprecated;
// functions overriding virtual functions from base classes
public:
inherited::read_archive(n, sym_lst);
setflag(get_default_flags());
- archive_node::archive_node_cit first = n.find_first("seq");
- archive_node::archive_node_cit last = n.find_last("seq");
- ++last;
- this->reserve(this->seq, last - first);
- for (archive_node::archive_node_cit i=first; i<last; ++i) {
+ auto range = n.find_property_range("seq", "seq");
+ this->reserve(this->seq, range.end - range.begin);
+ for (archive_node::archive_node_cit i=range.begin; i<range.end; ++i) {
ex e;
n.find_ex_by_loc(i, e, sym_lst);
- this->seq.push_back(e);
+ this->seq.emplace_back(e);
}
}