| Line | |
|---|
| 1 | // ================================================================ // |
|---|
| 2 | // // |
|---|
| 3 | // File : arb_forward_list.h // |
|---|
| 4 | // Purpose : compatibility wrapper for forward_list // |
|---|
| 5 | // // |
|---|
| 6 | // Coded by Ralf Westram (coder@reallysoft.de) in February 2014 // |
|---|
| 7 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 8 | // http://www.arb-home.de/ // |
|---|
| 9 | // // |
|---|
| 10 | // ================================================================ // |
|---|
| 11 | |
|---|
| 12 | #ifndef ARB_FORWARD_LIST_H |
|---|
| 13 | #define ARB_FORWARD_LIST_H |
|---|
| 14 | |
|---|
| 15 | // this header can be eliminated when arb EXPECTS Cxx11 |
|---|
| 16 | |
|---|
| 17 | // arb_forward_list can only use those members common |
|---|
| 18 | // between Non-Cxx11-std:list and Cxx11-std::forward_list |
|---|
| 19 | // (i.e. nearly nothing) |
|---|
| 20 | |
|---|
| 21 | #ifdef Cxx11 |
|---|
| 22 | # include <forward_list> |
|---|
| 23 | # define arb_forward_list std::forward_list |
|---|
| 24 | #else |
|---|
| 25 | # include <list> |
|---|
| 26 | # define arb_forward_list std::list |
|---|
| 27 | #endif |
|---|
| 28 | |
|---|
| 29 | #else |
|---|
| 30 | #error arb_forward_list.h included twice |
|---|
| 31 | #endif // ARB_FORWARD_LIST_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.