understanding constant current source circuit
The capacitor stops charging when it reaches 5V because the transistor Q1 saturates. Q1 is unable to pull the voltage of the collector above the emitter voltage, which the feedback has set to 5V.