libobs/util: Add index operator to BPtr
This commit is contained in:
parent
91f752aff4
commit
7224e8d36e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user