A closed-form function has a function term that is a closed-form expression. That means, the function term contains only finite numbers of variables, allowed constants, allowed functions and/or allowed operations. It means something like "in allowed finite terms".
The elementary functions (Elementary functions - Differential algebra), if they are allowed, are a subset of the closed-form functions.
For the references below, see:
Prove that an equation has no elementary solution
Why is it that the Lambert W relation cannot be expressed in terms of elementary functions?
Your equation
$$x+e^{-x}=2,\ \ -2+x+e^{-x}=0$$
is an algebraic equation in dependencce of $x$ and $e^{-x}$. With Hermite-Lindemann theorem, we get that the equation cannot have an algebraic solution $x$.
$-2+x+e^{-x}$ is the function term of an elementary function. If it is a composition of allowed functions, we can calculate its inverse relation (the partial inverse functions) by applying the inverse relations of the individual members of that composition in opposite order. [Ritt 1925] and [Risch 1979] prove that compositions of elementary functions are the only elementary functions that are invertible by elementary functions.
The problem is that addition ("+") is not a unary but a binary operation and that $x$ and $e^{-x}$ are algebraically independent.
[Lin 1983] proves, assuming Schanuel's conjecture is true, that algebraic equations of both $x$ and $e^x$ cannot have solutions except $0$ that are elementary numbers. [Chow 1999] presents a method for proving this, assuming Schanuel's conjecture is true, for solutions that are explicit elementary numbers. (Someone should write an article that generalizes Chow's method to larger classes of equations.)
With Lin, Chow and Schanuel's conjecture, we get that your equation cannot have explicit or implicit elementary numbers as solutions.
The proofs come from number theory and differential algebra, because the elementary functions are closed regarding differentiation. But differentiation shouldn't be necessary for this.
$\ $
Lambert W ist the inverse relation of the elementary function $f\colon x\mapsto xe^x$ in the complex numbers. $xe^x$ is an algebraic expression in dependence of $x$ and $e^x$. Using the theorem of [Ritt 1925], we can guess that $f$ cannot have partial inverses that are elementary functions. It is proved in [Bronstein/Corless/Davenport/Jeffrey 2008] by the methods of [Rosenlicht 1969].
Your equation has the form
$$A(x)+B(x)e^{C(x)}=u,$$
with $A,B,C$ functions in the complex numbers, $u$ a complex constant and $x$ a complex variable. Under certain circumstances, equations of this form can be solved by applying Lambert W. See the real solutions $W_0\left(-e^{-2}\right)+2$ and $W_{-1}\left(-e^{-2}\right)+2$ of your equation in the other answers.
If you can bring the equation to the form
$$af(x)^ce^{b+cf(x)}=d,$$
with $a,b,d$ complex constants, $c$ a real constant and $f$ a function in the complex numbers, you can apply Lambert W and the solutions are, obeying the calculation rules for complex numbers,
$$x=f^{-1}\left(W_{k}(e^{\frac{\ln\left(\frac{d}{a}\right)-b+2j\pi i}{c}})\right)\ \ \ (j,k\in\mathbb{Z}),$$
with $f^{-1}$ the inverse relation of $f$.
If you allow $f^{-1}$ and Lambert W, the solutions are not elementary, but in closed form.