ltlast: simplify with std::make_pair() and c++11's std::tuple
* src/ltlast/atomic_prop.cc, src/ltlast/atomic_prop.hh, src/ltlast/automatop.cc, src/ltlast/automatop.hh, src/ltlast/binop.cc, src/ltlast/binop.hh, src/ltlast/bunop.cc, src/ltlast/bunop.hh, src/ltlast/multop.cc, src/ltlast/multop.hh, src/ltlast/unop.cc, src/ltlast/unop.hh: Use std::tuple to replace nested std::pair, simplify calls to std::map::erase, use auto and std::make_pair with insert, and simplify the dump() method using a range for.
This commit is contained in:
parent
c64503fb33
commit
b37dc0bc90
12 changed files with 89 additions and 119 deletions
|
|
@ -115,8 +115,8 @@ namespace spot
|
|||
static std::ostream& dump_instances(std::ostream& os);
|
||||
|
||||
protected:
|
||||
typedef std::pair<type, const formula*> pair;
|
||||
typedef std::map<pair, const unop*> map;
|
||||
typedef std::pair<type, const formula*> key;
|
||||
typedef std::map<key, const unop*> map;
|
||||
static map instances;
|
||||
|
||||
unop(type op, const formula* child);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue