This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "option.hxx" | |
| #define _OPDEF2(name, op) template<typename T> template<typename R> \ | |
| auto Option<T>:: name (R val){ \ | |
| return this op val; \ | |
| } | |
| #define _OPDEF(op) template<typename T> template<typename R>\ | |
| auto Option<T>::operator op(R const& val){\ | |
| if (!empty)\ |