@@ -250,7 +250,7 @@ TEST_P(EphemerisTest, FlowWithAdaptiveStepSpecialCase) {
250
250
EXPECT_OK (ephemeris.FlowWithAdaptiveStep (
251
251
&trajectory,
252
252
Ephemeris<ICRS>::NoIntrinsicAcceleration,
253
- trajectory.rbegin ()-> first ,
253
+ trajectory.back (). first ,
254
254
Ephemeris<ICRS>::AdaptiveStepParameters (
255
255
EmbeddedExplicitRungeKuttaNyströmIntegrator <
256
256
DormandالمكاوىPrince1986RKN434FM,
@@ -447,10 +447,10 @@ TEST_P(EphemerisTest, EarthProbe) {
447
447
AlmostEquals (1.00 * period * v_earth, 633 , 635 ));
448
448
EXPECT_THAT (earth_positions[100 ].coordinates ().y , Eq (q_earth));
449
449
450
- Length const q_probe = (trajectory.rbegin ()-> second .position () -
450
+ Length const q_probe = (trajectory.back (). second .position () -
451
451
ICRS::origin).coordinates ().y ;
452
452
Speed const v_probe =
453
- trajectory.rbegin ()-> second .velocity ().coordinates ().x ;
453
+ trajectory.back (). second .velocity ().coordinates ().x ;
454
454
std::vector<Displacement<ICRS>> probe_positions;
455
455
for (auto const & [time , degrees_of_freedom] : trajectory) {
456
456
probe_positions.push_back (degrees_of_freedom.position () - ICRS::origin);
@@ -472,7 +472,7 @@ TEST_P(EphemerisTest, EarthProbe) {
472
472
Eq (q_probe));
473
473
474
474
Instant const old_t_max = ephemeris.t_max ();
475
- EXPECT_THAT (trajectory.rbegin ()-> first , Lt (old_t_max));
475
+ EXPECT_THAT (trajectory.back (). first , Lt (old_t_max));
476
476
EXPECT_THAT (ephemeris.FlowWithAdaptiveStep (
477
477
&trajectory,
478
478
intrinsic_acceleration,
@@ -487,7 +487,7 @@ TEST_P(EphemerisTest, EarthProbe) {
487
487
/* max_ephemeris_steps=*/ 0 ),
488
488
StatusIs (absl::StatusCode::kDeadlineExceeded ));
489
489
EXPECT_THAT (ephemeris.t_max (), Eq (old_t_max));
490
- EXPECT_THAT (trajectory.rbegin ()-> first , Eq (old_t_max));
490
+ EXPECT_THAT (trajectory.back (). first , Eq (old_t_max));
491
491
}
492
492
493
493
// The Earth and two massless probes, similar to the previous test but flowing
@@ -580,13 +580,13 @@ TEST_P(EphemerisTest, EarthTwoProbes) {
580
580
EXPECT_THAT (earth_positions[100 ].coordinates ().y , Eq (q_earth));
581
581
582
582
Length const q_probe1 =
583
- (trajectory1.rbegin ()-> second .position () - ICRS::origin).coordinates ().y ;
583
+ (trajectory1.back (). second .position () - ICRS::origin).coordinates ().y ;
584
584
Length const q_probe2 =
585
- (trajectory2.rbegin ()-> second .position () - ICRS::origin).coordinates ().y ;
585
+ (trajectory2.back (). second .position () - ICRS::origin).coordinates ().y ;
586
586
Speed const v_probe1 =
587
- trajectory1.rbegin ()-> second .velocity ().coordinates ().x ;
587
+ trajectory1.back (). second .velocity ().coordinates ().x ;
588
588
Speed const v_probe2 =
589
- trajectory2.rbegin ()-> second .velocity ().coordinates ().x ;
589
+ trajectory2.back (). second .velocity ().coordinates ().x ;
590
590
std::vector<Displacement<ICRS>> probe1_positions;
591
591
std::vector<Displacement<ICRS>> probe2_positions;
592
592
for (auto const & [time , degrees_of_freedom] : trajectory1) {
0 commit comments