Questions tagged [move]

Usually refers to move semantics; consider using that tag instead. Move semantics is a programming language feature that allows a copy operation to be replaced by a more efficient "move" when the source object is a temporary or an otherwise expiring object.

Usually refers to ; consider using that tag instead.

Move semantics is a programming language feature that allows a copy operation to be replaced by a more efficient "move" when the source object is a temporary or an otherwise expiring object.

For more information on move semantics in C++, see Rvalue references and move constructors.

Related tags are , , and .

3461 questions
1
vote
1 answer

Move the cursor programmatically from one page to other page using JavaScript

I have 2 pages on the screen (actually more as it is a kind of proprietary web application with a few frames and I cannot figure out actually the whole structure) I enter the search criteria in a page, I press ‘Enter’ on the keyboard , search is…
user39488
  • 21
  • 4
1
vote
0 answers

What kind of path does move_uploaded_file() require? Absolute or relative?

What kind of path does move_uploaded_file() require as destination? http://php.net/manual/en/function.move-uploaded-file.php Relative or absolute path? I need to usa relative path as it's more convenient in my case. The file system is Linux.
Ariel
  • 1,222
  • 2
  • 14
  • 25
1
vote
2 answers

move images in a line with timed effect

the idea is that I have a div with some images ( in a horizontal line) you only see the first image within the div. For now there are 5 images. I want to move the images from right to left leaving the div (and screen) and after the last images has…
Petra
  • 11
  • 1
1
vote
1 answer

excel vba move each text file to a new directory using the file name?

i am using the following vba code to import all my text files onto a new row in excel. This bit works fine, the next thing I want to do is once this has imported the text files, I want each text file to be moved from one directory…
james
  • 153
  • 1
  • 17
1
vote
1 answer

Logger logs 2 times instead of one time because of copy

I am writing my own Logger. I know there are alot out there but i would like to write it myself. It has messages which get logged when they are leaving the scope. So if i call Logger::Error(__FILE__,__LINE__) << "some error" it gets logged directly…
bemeyer
  • 6,154
  • 4
  • 36
  • 86
1
vote
3 answers

Return STL objects from function without triggering move

Suppose there is a function that returns any local object, which implements move semantics, e.g. any STL container such as std::vector, std::string, etc. E.g.: std::vector return_vector(void) { std::vector tmp {1,2,3,4,5}; return…
Oleg Shirokikh
  • 3,447
  • 4
  • 33
  • 61
1
vote
1 answer

Do I use the move semantic correctly? What would be the benefit?

I wonder if I use the move semantic correctly: class Vertex{ protected: Common::Point3D position; Common::Point3D normal; Common::Point2D uv; Common::Point2D tangent; public: Vertex(Common::Point3D…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
1
vote
1 answer

function which inserts a unique_ptrs into a multimap does not compile ICPC in linux

i am trying to build a multimap with unique_ptr and i am getting strange compilation errors in Linux Example Code: #include #include #include using namespace std; class Event { public: Event (double time) :…
jmk123
  • 11
  • 2
1
vote
3 answers

HOw to move my bullet slowly in java?

Hi I am developing a game that a fighter moves right and left and shoots. For the shooting part, I tried to use a for loop to slow the speed down and user can see the bullet. But it wasn't enough. I used sleep too but not a good answer. Now I have…
Ebola
  • 43
  • 10
1
vote
1 answer

move x amount of files to new folders

I have a folder with 10,000 images, I want to move them all so I have 100 images in each new sub folder. the new folders can be simply named 01,02,03 and so on. how can this be done from the command line in ubuntu? thanks
John
  • 136
  • 1
  • 12
1
vote
1 answer

Move files with python

Continusly to How can i move files from one directory to another? i try to move all jpg files from folder r"C:\Project\layers" to folder r"C:\Project\layers\new" with this code, but i get en error: import shutil, os source =…
newGIS
  • 598
  • 3
  • 10
  • 26
1
vote
1 answer

How to ignore 8.3 filename for "move" command in batchscript?

I have to move a lot of xml-Files, named as follow: F010199004524001_904.XML F010199805946001_737.XML F010199904725001_611.XML F030390114543001_901.XML F030390114544001_257.XML F030390114545001_901.XML in my batch-file, there's this line: move…
HarleyDavidson
  • 559
  • 6
  • 17
1
vote
1 answer

Std::stringstream move assignment not working in gcc

An assignment like the following std::stringstream strstr; strstr = std::stringstream(someString) does give me an error when compiling in gcc: error: use of deleted function ‘std::basic_stringstream&…
bweber
  • 3,772
  • 3
  • 32
  • 57
1
vote
1 answer

How to draw and move bitmap inside of linearlayout when this was created

I wish my bitmap moved when I click on it and I move around the board. The code I am using so far is this: LinearLayout ll = (LinearLayout) findViewById(R.id.table); ll.setWillNotDraw(false); ll.setOnTouchListener(new View.OnTouchListener() { …
javipipero
  • 89
  • 9
1
vote
0 answers

scale text with bounded area and move textview on image by freehand in android

I want to scale text view with bounded area and bounded text view move on image view by freehand. Actually, I want exactly like that link but nobody help regarding that question please help me how to solve that problem specially bounded text view…
Shashank Gupta
  • 165
  • 2
  • 16
1 2 3
99
100