libobs/util: Add index operator to BPtr

This commit is contained in:
jp9000 2016-08-28 14:22:55 -07:00
parent 91f752aff4
commit 7224e8d36e

View File

@ -46,6 +46,8 @@ public:
inline bool operator!() {return ptr == NULL;}
inline bool operator==(T p) {return ptr == p;}
inline bool operator!=(T p) {return ptr != p;}
inline T operator[](size_t idx) const {return ptr[idx];}
};
class ConfigFile {