i need stack adt in application. avoid making wrapper on nsmutablearray
; there must efficient implementation in foundation somewhere.
so, how access it?
you've got couple of options; if want stack, use std::stack
stl. sure include #import <stack>
rename .m
files use .mm
.
the other option write objective-c class either wraps std::stack
, or provides stack interface nsmutablearray
. include despite wishes contrary, because unless have profiled code uses nsmutablearray
, have absolutely no business complaining performance.
Comments
Post a Comment