void weight_data::rev_seq(string &seq){
//TODO
std::reverse(seq.begin(), seq.end());
}
In this C++ method, I think this method does not return anything, so the prefix is void, what does :: tell the relationships between weight_data and rev_seq(string &seq)? Thanks!
voidis the return type.::is the scope resolution operator, so it meansrev_seqis inside the scope ofweight_data.weight_datacould be either a namespace or a class (based on what you’ve given, it’s not possible to say which).