---
layout: docs
title: Facebook\HackCodegen\_Private\Vec\pop_backx
id: function.Facebook.HackCodegen._Private.Vec.pop_backx
docid: function.Facebook.HackCodegen._Private.Vec.pop_backx
permalink: /docs/reference/function.Facebook.HackCodegen._Private.Vec.pop_backx/
---
# Facebook\\HackCodegen\\_Private\\Vec\\pop_backx()




Return and remove the last element from a container




``` Hack
namespace Facebook\HackCodegen\_Private\Vec;

function pop_backx<\T>(
  Container<\T> $list,
): \T;
```




## Parameters




- ` Container<\T> $list `




## Returns




+ ` the ` - last element in the container