alecAbstraction Layer for Escape Codes |
git clone git://git.dimitrijedobrota.com/alec.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING | |
location.hpp (347B)
1 #pragma once 2 3 #include <cstddef> 4 #include <ostream> 5 #include <utility> 6 7 namespace alec 8 { 9 10 using position_t = std::size_t; 11 using location_t = std::pair<std::size_t, std::size_t>; 12 13 } // namespace alec 14 15 inline std::ostream& operator<<(std::ostream& ost, const alec::location_t& loc) 16 { 17 return ost << "[" << loc.first << "-" << loc.second << "]"; 18 }