Planck and BICEP/Keck Array 2018 constraints on primordial gravitational waves and perspectives for future B -mode polarization measurements