Naughty Alien Posted August 28, 2012 Share Posted August 28, 2012 ..what are my options regarding slicing vector container, apart from using for loop, performance wise ? Quote Link to comment Share on other sites More sharing options...
Canardia Posted August 28, 2012 Share Posted August 28, 2012 Recursion. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Naughty Alien Posted August 28, 2012 Author Share Posted August 28, 2012 ..reinventing wheel doesnt feel right to me..Boost lib seems to be consensus among many googled forums..anyone maybe used it ? Quote Link to comment Share on other sites More sharing options...
Canardia Posted August 28, 2012 Share Posted August 28, 2012 Why not just use STL::list? Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Naughty Alien Posted August 28, 2012 Author Share Posted August 28, 2012 ..ah..got it..assign / insert did it..luv it ..well..insertion happening at the end only during creation process, and i do require direct, random access by indexes, so i think vector is way to go.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.