Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5979207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:37:37+00:00 2026-05-22T21:37:37+00:00

I have a quick question for you all. I’m trying to convert over some

  • 0

I have a quick question for you all. I’m trying to convert over some ActionScript code to C++ and am having a difficult time with this one line:

private var edges:Vector.<Array>

What is this exactly? Is this essentially a multidimensional vector then? Or is this simply declaring the vector as a container? I understand from researching that vectors, like C++ vectors, have to be declared with a type. However, in C++ I can’t just put down Array, I have to use another vector (probably) so it looks like:

vector<vector<T> example;

or possibly even

vector<int[]> example;

I don’t expect you guys to know the C++ equivalent because I’m primarily posting this with AS tags, but if you could confirm my understand of the AS half, that would be great. I did some googling but didn’t find any cases where someone used Array as it’s type.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:37:37+00:00Added an answer on May 22, 2026 at 9:37 pm

    From Mike Chambers (adobe evangelist) :

    “Essentially, the Vector class is a typed Array, and in addition to ensuring your collection is type safe, can also provide (sometimes significant) performance improvements over using an Array.”

    http://www.mikechambers.com/blog/2008/08/19/using-vectors-in-actionscript-3-and-flash-player-10/

    Essentially the vector in C++ is based on the same principles. As far as porting a vector of Arrays in AS3 to C++, well that’s not a conversion that is clear cut in principle, as you could have a collection (array) of various types in C++, such as a char array. However, it appears you’ve got the idea, as you’ve pretty much posted examples of both avenues in your question.

    I would post some code but I think you’ve got it exactly. Weather you use a vector within a vector or you declare a specifically typed collection I think comes down to a matter of what works best for you specific project.

    Also you might be interested in:

    http://www.mikechambers.com/blog/2008/09/24/actioscript-3-vector-array-performance-comparison/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Quick question. I have been Googling this all morning, but it's either not there,
I have quick question about jQuery plugins, hope somebody out there has some advice.
I have quick question for you all :) Let's say we have an eshop
Hey all, kind of new at Kohana and I have a quick question. I
Just a quick question. I have a system which contains some silverlight elements to
Just a quick regex question...hopefully I have a string that looks something like this:
I have a quick question with some jQuery where I'm running into a problem.
I have a quick question about fetching results from a weakly typed cursor and
just a quick question: I am a CS undergrad and have only had experience
just a quick question, if I have a matrix has n rows and m

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.