About 22,800,000 results
Open links in new tab
  1. How to call vector function from main() in C++? - Stack Overflow

    Dec 3, 2020 · 2 In C++, you can't create a std::vector with a [1, 2] expression. The most similar thing will be implicitly creating an instance of std::vector by list initializer with {1, 2}. See more about this in …

  2. Why use a new call with a C++ 'vector'? - Stack Overflow

    Feb 13, 2018 · So how is the following, vector<someType> *myVector = new vector<someType>();, different (other than being a pointer) from the earlier one? Is there a double allocation happening …

  3. C++ Calling Vectors from Function to Main - Stack Overflow

    Nov 7, 2013 · I'm trying read a large amount of values into a vector in a specific function and then calling it into the main to get the average. My readInput works perfectly. But I believe my main function ret...

  4. c++ - How to pass a vector to a function? - Stack Overflow

    Anytime you're tempted to pass a collection (or pointer or reference to one) to a function, ask yourself whether you couldn't pass a couple of iterators instead. Chances are that by doing so, you'll make …

  5. Does std::vector<T>::clear() call destructor of the content?

    Mar 28, 2014 · If your items are dynamically allocated and your vector contains pointers to them, you will have to manually call delete on each pointer in that container before calling clear(). Otherwise you …

  6. How to get the Azure assistant to use the vector store using SDK

    Jan 17, 2025 · I've created a Vector store as well as an Assistant within Azure AI Foundry -> Azure OpenAI Service Using the SDK (link above) and the assistantID I'm trying to run a thread but it's …

  7. C++ - No matching member function for call to 'push_back'

    However at the second-to-last line, when i try to push the vertex puller into the vector, I get the error - No matching member function for call to 'push_back'.

  8. stl - Why is a C++ Vector called a Vector? - Stack Overflow

    Feb 24, 2009 · It's called a vector because Alex Stepanov, the designer of the Standard Template Library, was looking for a name to distinguish it from built-in arrays. He admits now that he made a …

  9. C++ Destructors with Vectors, Pointers, - Stack Overflow

    Aug 22, 2012 · std::vector<myClass*> of pointers to classes. What happens when the vector destructor is called? Would it call automatically the destructor of myClass? Or only the vector is destroyed but …

  10. HTTP 403 error when trying to follow the "Vector search by using REST ...

    Jul 30, 2024 · I was trying to follow this guide to learn how to use OpenAI embeddings using Azure AI search. I completed all the steps exactly as instructed but when I tried to create an index using the …