mutable vector


What is a mutable vector and for what is it used? I attach a part of a code where it appears:

1
2
3
4
void Phase::getConcentrations(doublereal* const c) const
{
    scale(m_ym.begin(), m_ym.end(), c, m_dens);
}


where

 
mutable vector_fp m_ym;


Thanks,

Ramon
Last edited on
Why is that function even const in the first place? Why does its name start with "get" but it doesn't return anything?
I'm guessing c is an output parameter.
Topic archived. No new replies allowed.