Say I have a member function that returns an integer, would it be considered bad practise on the odd occasion to call the member function and not store the return value.
Edit.
An example of this would be a function that appends an item to a vector and returns the index of the appended item.
A simplified example.
#include <vector>
using namespace std;
vector<int> myVector;
int AppendVector(int value)
{
myVector.push_back(value);
}
int main()
{
AppendVector(3);
AppendVector(4);
int indexOfValue = AppendVector(2);
// do action on appended value
}