STL_examples.cpp
TEST(fill, ExampleOne) {
    std::vector<char> v{'a', 'b', 'c', 'd'};
    std::fill(v.begin(), v.end(), 'z');

    std::vector<char> new_v{'z', 'z', 'z', 'z'};
    EXPECT_EQ(v, new_v);
}
// Note that fill_n also exists.
Note that fill_n also exists.
Note that fill_n also exists .
TEST(fill, ExampleOne) {
    std::vector<char> v{'a', 'b', 'c', 'd'};
    std::fill(v.begin(), v.end(), 'z');
    std::vector<char> new_v{'z', 'z', 'z', 'z'};
    EXPECT_EQ(v, new_v);
}
TEST ( fill , ExampleOne ) { std :: vector < char > v { ' ' , ' ' , ' ' , ' ' } ; std :: fill ( v . begin ( ) , v . end ( ) , ' ' ) ; std :: vector < char > new_v { ' ' , ' ' , ' ' , ' ' } ; EXPECT_EQ ( v , new_v ) ; }
Note that fill_n also exists.
Note that fill_n also exists .