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
2 answers

Move a file to another directory (folder within a special folder) C#

I am trying to move a file but I can only get it working when its to a special folder and not a folder within a special folder. In case I would like to move it to a folder call "i" located within my documents: foreach (string filename in…
Code
  • 39
  • 7
1
vote
2 answers

Are the implicit move ctor/assignmet operations noexcept? What about implicit copy operations?

The question titles says it all. I need to know if the default copy/move assignment/ctors implemented implicitly by the compiler are declared noexcept.
a06e
  • 18,594
  • 33
  • 93
  • 169
1
vote
1 answer

bash script to loop through different files and perform command

I have 25 files in a directory, all named xmolout1, xmolout2, ... , xmolout25. These are all .txt files and I need to copy the last 80 lines from these files to new .txt files. Preferably, these would automatically generate the correct number (taken…
Steven
  • 404
  • 1
  • 3
  • 10
1
vote
1 answer

Outlook plugin move mail item is slow

I'm working on a plugin for outlook that moves emails to a folder. Is working fine but looks like the move method of MailItem is slow take 4-5 seconds to move 10 emails I'm using something like for (int i = folder.Items.Count; i > 0; i--) { …
MariusP
  • 17
  • 5
1
vote
1 answer

SceneKit Moving a Camera around another Node

I would like to move the camera around a SCNNode nodeA. What I'have done so far is: self.cameraNode.constraints = [SCNLookAtConstraint(target: nodeA)] now if I increment the position.x of the camera the camera still look toward the nodeA. How to…
chiarotto.alessandro
  • 1,491
  • 1
  • 13
  • 31
1
vote
0 answers

iOS 9 beta 4 not move all items from the view frame

I have this code to move the view when keyboard appears: const int movementDistance = -160; // tweak as needed const float movementDuration = 0.3f; // tweak as needed int movement = (up ? movementDistance : -movementDistance); [UIView…
Kotik_o
  • 295
  • 6
  • 19
1
vote
2 answers

how to make a UIView move up when keyboard is present

i have a log in page and for smaller screens (for example iPhone 4s) keyboard can overlay on login button and password textfield etc. So i placed username textfield, password textfield and login button into a UIView which is connected to the…
marmaralone
  • 516
  • 6
  • 11
1
vote
1 answer

Reduce Node Speed as it gets Closer to a Specific Point

When bringing a node into view, I don't like how it is travelling and then suddenly stops as it reaches it's moveTo point. What I would like to do is slowly reduce the speed of the node as it approaches it's moveTo point, but after 2 days of…
Jarron
  • 1,049
  • 2
  • 13
  • 29
1
vote
0 answers

How to make a camera-window in Unity3D

I am programing a 2.5 D Spaceshooter game. Unfortunately, I have some problems with the camera. With this code, my Camera follows only the spaceship. using UnityEngine; using System.Collections; public class CameraController : MonoBehaviour…
azami1986
  • 93
  • 1
  • 6
1
vote
0 answers

How to drag and rotate svg elements?

So far i've made a user interface which allows you to select a number, and then it creates that amount of svg squares. I need to be able to make each svg square rotatable and movable. Similar to the way you rotate and drag around images on…
Trevin
  • 11
  • 2
1
vote
2 answers

Move a window on keypress + mouse (like linux ALT + mouse down)

Simple, i want to move a windows pressing ALT+MOUSE, like linux os (ALT+drag). It's possible to pass a win32 api (move api) to the windows interested clicking on it? I have a windows services that hook key pressed (ALT button in specific). When ALT…
elp
  • 8,021
  • 7
  • 61
  • 120
1
vote
2 answers

Move Bitmap in canvas android java

My Question is how can I move a bitmap on a canvas? Recently I'm making a game and There's a button. When I'm clicking on this button I want to move the bitmap (Only X) but when i'm doing this the bitmap is gone. Here's the code : "main_right" is…
Amit
  • 207
  • 1
  • 4
  • 11
1
vote
1 answer

How do I move an image in JavaScript?

I am trying to draw and move an image using JS. This code works up until the moveImage function which simply does nothing. Can anyone help me figure this out? I believe that I can get the image to move if I place it in the html, but I would prefer…
1
vote
1 answer

Win7 Batch File - Moving Subfolders(& Files) to Grand-Parent Directory

I have a somewhat complicated problem. I've downloaded an archived website from archive.org using Httrack and now I have thousands of subfolders and files I need to merge before I can rebuild it. I'm trying to write a batch file to solve the…
1
vote
1 answer

std::move on a C++ class does not move all members?

I understand that using v.push_back(std::move(foo)) will move foo contents to a vector. However I do not understand why the below code : #include #include struct Foo { std::string s; float f; friend…
coincoin
  • 4,595
  • 3
  • 23
  • 47
1 2 3
99
100