-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f3cde9
commit 21d95b0
Showing
33 changed files
with
335 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: ren-nasr <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/01 20:12:30 by ren-nasr #+# #+# */ | ||
/* Updated: 2022/10/08 22:28:54 by ren-nasr ### ########.fr */ | ||
/* Updated: 2022/10/21 09:55:21 by ren-nasr ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -19,15 +19,11 @@ | |
/* iterator as underlying iterator. */ | ||
/* &*it = &*(it.base() - 1) */ | ||
/* ************************************************************************** */ | ||
|
||
namespace ft { | ||
|
||
#ifndef REVERSE_ITERATOR_HPP | ||
#define REVERSE_ITERATOR_HPP | ||
|
||
#include <iterator_traits.hpp> | ||
|
||
|
||
namespace ft { | ||
template <class Iter> | ||
class reverse_iterator { | ||
/*********************** Member types ***********************/ | ||
|
@@ -158,7 +154,7 @@ namespace ft { | |
return lhs.base() >= rhs.base(); | ||
} | ||
|
||
#endif | ||
|
||
|
||
} // namespace ft | ||
} // namespace ft | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: ren-nasr <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/02 12:47:18 by ren-nasr #+# #+# */ | ||
/* Updated: 2022/10/08 20:14:29 by ren-nasr ### ########.fr */ | ||
/* Updated: 2022/10/21 09:55:35 by ren-nasr ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -17,11 +17,11 @@ | |
/* changing their behaviour. */ | ||
/*******************************************************************************************/ | ||
|
||
|
||
namespace ft { | ||
#ifndef STACK_HPP | ||
#define STACK_HPP | ||
|
||
namespace ft { | ||
|
||
|
||
template <class T, class Container = vector<T> > | ||
class stack { | ||
|
@@ -80,6 +80,6 @@ namespace ft { | |
container_type _cntr; | ||
}; | ||
|
||
} // namespace ft | ||
|
||
#endif | ||
} // namespace ft | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,16 @@ | |
/* By: ren-nasr <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/08 12:11:13 by ren-nasr #+# #+# */ | ||
/* Updated: 2022/10/08 22:23:37 by ren-nasr ### ########.fr */ | ||
/* Updated: 2022/10/21 09:54:23 by ren-nasr ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
namespace ft { | ||
|
||
#ifndef EQUAL_HPP | ||
#define EQUAL_HPP | ||
|
||
|
||
namespace ft { | ||
|
||
/************* default *******************/ | ||
template <class InputIterator1, class InputIterator2> | ||
bool equal(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2) { | ||
|
@@ -40,5 +42,5 @@ namespace ft { | |
return true; | ||
}; | ||
|
||
#endif | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* lexicographical_compare.hpp :+: :+: :+: */ | ||
/* lexico_compare.hpp :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: ren-nasr <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/10/08 11:58:26 by ren-nasr #+# #+# */ | ||
/* Updated: 2022/10/08 12:08:49 by ren-nasr ### ########.fr */ | ||
/* Updated: 2022/10/21 09:55:01 by ren-nasr ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
namespace ft { | ||
|
||
#ifndef LEXICOGRAPHICAL_COMPARE_HPP | ||
#define LEXICOGRAPHICAL_COMPARE_HPP | ||
namespace ft { | ||
|
||
|
||
/** default (1) */ | ||
template <class InputIterator1, class InputIterator2> | ||
|
@@ -53,5 +53,5 @@ namespace ft { | |
return (first1 == last1 && first2 != last2); | ||
}; | ||
|
||
#endif | ||
} // namespace ft | ||
} // namespace ft | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: ren-nasr <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2022/07/30 13:56:03 by ren-nasr #+# #+# */ | ||
/* Updated: 2022/10/19 16:14:14 by ren-nasr ### ########.fr */ | ||
/* Updated: 2022/10/21 09:53:55 by ren-nasr ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -22,6 +22,7 @@ | |
|
||
#ifndef VECTOR_HPP | ||
#define VECTOR_HPP | ||
|
||
#include <memory> | ||
#include <reverse_iterator.hpp> | ||
#include <choose_type.hpp> | ||
|
Oops, something went wrong.