Jump to content
Sign in to follow this  

Array insert without increasing array

Recommended Posts


I basically want to "insert" a value at a particular element, BUT not increase the array size. So if I chose to "insert"/replace an item at element 3, I want the new value to go in and the array size not increase. _arrayswap is not an option.

EDIT: Never mind, I figured out how to use _arrayswap for what I needed.

Edited by Champak

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this