13
0

Add Lua bindings for std::list ::front() and ::back()

This commit is contained in:
Robin Gareus 2017-02-20 00:17:08 +01:00
parent 542b789a42
commit 226b2a526e

View File

@ -1847,6 +1847,8 @@ public:
.addFunction ("empty", &LT::empty) .addFunction ("empty", &LT::empty)
.addFunction ("size", &LT::size) .addFunction ("size", &LT::size)
.addFunction ("reverse", &LT::reverse) .addFunction ("reverse", &LT::reverse)
.addFunction ("front", static_cast<const T& (LT::*)() const>(&LT::front))
.addFunction ("back", static_cast<const T& (LT::*)() const>(&LT::back))
.addExtCFunction ("iter", &CFunc::listIter<T, LT>) .addExtCFunction ("iter", &CFunc::listIter<T, LT>)
.addExtCFunction ("table", &CFunc::listToTable<T, LT>); .addExtCFunction ("table", &CFunc::listToTable<T, LT>);
} }