About 8,190,000 results
Open links in new tab
  1. c++ - How to convert vector to set? - Stack Overflow

    I have a vector, in which I save objects. I need to convert it to set. I have been reading about sets, but I still have a couple of questions: How to correctly initialize it? Honestly, some tutori...

  2. r - Convert data.frame column to a vector? - Stack Overflow

    Aug 9, 2010 · 2 Another option is using as.matrix with as.vector. This can be done for one column but is also possible if you want to convert all columns to one vector. Here is a reproducible example with …

  3. stl - C++ convert vector<int> to vector<double> - Stack Overflow

    Jun 18, 2011 · What is a good clean way to convert a std::vector<int> intVec to std::vector<double> doubleVec. Or, more generally, to convert two vectors of convertible types?

  4. c++ - How to convert vector to array - Stack Overflow

    May 27, 2010 · 27 As to std::vector<int> vec, vec to get int*, you can use two method: int* arr = &vec [0]; int* arr = vec.data (); If you want to convert any type T vector to T* array, just replace the above int to …

  5. Converting between C++ std::vector and C array without copying

    May 31, 2014 · I would like to be able to convert between std::vector and its underlying C array int* without explicitly copying the data. Does std::vector provide access to the underlying C array?

  6. How to convert direction vector to euler angles? - Stack Overflow

    Feb 7, 2014 · I'm looking for a way to convert direction vector (X,Y,Z) into Euler angles (heading, pitch, bank). I know that direction vector by itself is not enough to get the bank angle, so there's also anoth...

  7. c++20 ranges view to vector - Stack Overflow

    Jul 27, 2020 · Now that the C++20 ranges implementation is actually here and released under GCC 10.2, I would like to know how to convert a ranges view back to an actual container, like a vector. I've …

  8. c++ - Convert iterator to pointer? - Stack Overflow

    Vector is a template class and it is not safe to convert the contents of a class to a pointer : You cannot inherit the vector class to add this new functionality. and changing the function parameter is actually …

  9. arrays - vhdl: convert vector to string - Stack Overflow

    How can I convert a std_logic vector, bit_vector or any other vector to string?

  10. convert vector<string> into char** C++ - Stack Overflow

    Sep 25, 2014 · I have a vector<std::string> variable. I need to pass it onto a method which accepts char** as an input parameter. how to do this ? If possible I need to pass a writable one. Update 1: In …