## LinkedList::Remove(const T\&) method


Removes first occurance of the specified **element** from list.

```cpp
bool System::Collections::Generic::LinkedList<T>::Remove(const T &element) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| element | const T\& | Element to remove. |

### ReturnValue

True if **element** was found and removed, false otherwise.

## See Also

* Class [LinkedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
## LinkedList::Remove(const SharedPtr\<LinkedListNode\<T\>\>\&) method


Removes node from list.

```cpp
void System::Collections::Generic::LinkedList<T>::Remove(const SharedPtr<LinkedListNode<T>> &node)
```


| Parameter | Type | Description |
| --- | --- | --- |
| node | const SharedPtr\<LinkedListNode\<T\>\>\& | Node to remove. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [LinkedListNode](../../linkedlistnode/)
* Class [LinkedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
