From 853883b72b1349f15741bc04419e29392faf6fa8 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Fri, 2 Feb 2024 13:48:54 -0500 Subject: [PATCH] remove unused functions --- lectures/08_vector_implementation/README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lectures/08_vector_implementation/README.md b/lectures/08_vector_implementation/README.md index 37fb6a1..ac0f6cc 100644 --- a/lectures/08_vector_implementation/README.md +++ b/lectures/08_vector_implementation/README.md @@ -30,9 +30,7 @@ In creating our own version of the STL vector class, we will start by considerin public: // MEMBER FUNCTIONS AND OTHER OPERATORS T& operator[] (unsigned int i); -const T& operator[] (unsigned int i) const; void push_back(const T& t); -void resize(unsigned int n, const T& fill_in_value = T()); void clear(); bool empty() const; unsigned int size() const; @@ -55,12 +53,7 @@ T”. In the actual text of the code files, templated member functions are often declaration. - The templated functions defined outside the template class declaration must be preceded by the phrase: -template <class T> and then when Vec is referred to it must be as Vec<T>. For example, for member -function create (two versions), we write: - -```cpp -template void Vec::create(... -``` +template <class T> and then when Vec is referred to it must be as Vec<T>. ## 8.3 Syntax and Compilation