alec

Abstraction 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)


0 #pragma once 1 2 #include <cstddef> 3 #include <ostream> 4 #include <utility> 5 6 namespace alec 7 { 8 9 using position_t = std::size_t; 10 using location_t = std::pair<std::size_t, std::size_t>; 11 12 } // namespace alec 13 14 inline std::ostream& operator<<(std::ostream& ost, const alec::location_t& loc) 15 { 16 return ost << "[" << loc.first << "-" << loc.second << "]"; 17 }