Add Lua bindings for std::list ::front() and ::back()
This commit is contained in:
parent
542b789a42
commit
226b2a526e
@ -1847,6 +1847,8 @@ public:
|
||||
.addFunction ("empty", <::empty)
|
||||
.addFunction ("size", <::size)
|
||||
.addFunction ("reverse", <::reverse)
|
||||
.addFunction ("front", static_cast<const T& (LT::*)() const>(<::front))
|
||||
.addFunction ("back", static_cast<const T& (LT::*)() const>(<::back))
|
||||
.addExtCFunction ("iter", &CFunc::listIter<T, LT>)
|
||||
.addExtCFunction ("table", &CFunc::listToTable<T, LT>);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user