How to check if the string is empty?

Empty strings are “falsy” (python 2 or python 3 reference), which means they are considered false in a Boolean context, so you can just do this: This is the preferred way if you know that your variable is a string. If your variable could also be some other type then you should use myString == “”. See the documentation … Read more

Is there a decent wait function in C++?

you can require the user to hit enter before closing the program… something like this works. The cin reads in user input, and the .ignore() function of cin tells the program to just ignore the input. The program will continue once the user hits enter. Link

git – pulling from specific branch

See the git-pull man page: git pull [options] [<repository> [<refspec>…]] and in the examples section: Merge into the current branch the remote branch next: $ git pull origin next So I imagine you want to do something like: To set it up so that it does this by default while you’re on the dev branch:

What is uintptr_t data type

uintptr_t is an unsigned integer type that is capable of storing a data pointer. Which typically means that it’s the same size as a pointer. It is optionally defined in C++11 and later standards. A common reason to want an integer type that can hold an architecture’s pointer type is to perform integer-specific operations on a … Read more